public function setUniverse(Universe $universe, $sync = true) { $this->universe = $universe; if ($sync) { $universe->addGalaxy($this, false); } }