public function __construct(Player $player, $isFlying) { $this->player = $player; $this->isFlying = (bool) $isFlying; }