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;
    }
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;
    }
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 ; }
Set a property description.

@param AnDomainPropertyAbstract $property The property to set

@return AnDomainDescriptionAbstract
Set a property description .