/** * Add a property to the reflected class. * * @param ReflectionProperty $property */ public function addProperty(ReflectionProperty $property) { $this->properties[$property->getShortName()] = $property; $property->setDeclaringClassLike($this); $property->setFilename($this->getFileName()); return $this; }