player = $player; $this->isFlying = (bool) $isFlying; } public function isFlying(){ return $this->isFlying; } }