public function setProperty(PhpProperty $property) { $property->setParent($this); $this->properties->set($property->getName(), $property); return $this; }