Example #1
0
 /**
  * Set a property description
  * 
  * @param  AnDomainPropertyAbstract $property The property to set
  * 
  * @return AnDomainDescriptionAbstract
  */
 public function setProperty($property)
 {
     $this->_properties[$property->getName()] = $property;
     //if property name is the same as the identity property
     //then set the identity property
     if (is_string($this->_identity_property) && $property->getName() == $this->_identity_property) {
         $this->setIdentityProperty($property);
     }
     return $this;
 }