public function getPropertyValue($id)
    {
        $property = $this->getProperty($id);
        if ($property === null) {
            return null;
        }

        return $property->isMultiValued() ? $property->getValues() : $property->getFirstValue();
    }
public function getPropertyValue($id)
    {
        $property = $this->getProperty($id);
        if ($property === null) {
            return null;
        }

        return $property->isMultiValued() ? $property->getValues() : $property->getFirstValue();
    }
public function getPropertyValue ( $ id ) { $ property = $ this -> getProperty ( $ id ) ; if ( $ property === null ) { return null ; } return $ property -> isMultiValued ( ) ? $ property -> getValues ( ) : $ property -> getFirstValue ( ) ; }
Returns the value of a property.

@param string $id the ID of the property
@return mixed the property value or <code>null</code> if the property hasn't been requested,
hasn't been provided by the repository, or the property value isn't set
Returns the value of a property .