private function addToManager() { if ($this->manager !== null) { $this->manager->add($this); } return $this; }