entity = &$point; $this->isNew = $isNew; } /** * @return Point */ public function getPoint() { return $this->entity; } public function setPoint(Point $point): void { $this->entity = $point; } }