public function __construct($name, SpaceShip $spaceShip = null) { $this->name = $name; $this->spaceShip = $spaceShip; }