Beispiel #1
0
 /**
  * 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;
 }
Beispiel #2
0
 /**
  * @param PropertyInterface $property
  */
 public function setProperty(PropertyInterface $property)
 {
     $this->properties[$property->getName()] = $property;
 }