/** * Adds a new property to this set. * * @param PropertyInterface $property The property to add * @return self Provides a fluent interface */ public function add(PropertyInterface $property) { $this->properties[$property->getName()] = $property; return $this; }
/** * @param PropertyInterface $property */ public function setProperty(PropertyInterface $property) { $this->properties[$property->getName()] = $property; }