class CardCore {
private $enemyHand;
function __construct($a, $b) {
if ($b) {
$this->enemyHand = 'It works';
}
}
public function Set() {
echo $this->enemyHand;
}
}
$hi = new CardCore('it works', true);
$hi::Set();
$hi->Set();