public function setProperty($name, $property)
    {
        Validate::isTrue($property instanceof Property, Resources::INVALID_PROP_MSG);
        $this->_properties[$name] = $property;
    }
public function setProperty($name, $property)
    {
        Validate::isTrue($property instanceof Property, Resources::INVALID_PROP_MSG);
        $this->_properties[$name] = $property;
    }
public function setProperty ( $ name , $ property ) { Validate :: isTrue ( $ property instanceof Property , Resources :: INVALID_PROP_MSG ) ; $ this -> _properties [ $ name ] = $ property ; }
Sets entity property.

@param string   $name     The property name.
@param Property $property The property object.

@return void
Sets entity property .