protected function applyEncoder($value, $propertyUri = '')
    {
        if (empty($propertyUri) === false) {
            $encoders = $this->getEncoders();
            
            if (isset($encoders[$propertyUri]) === true) {
                $encodedValue = call_user_func($encoders[$propertyUri], $value);
                return $encodedValue;
            }
        }
        
        return $value;
    }
protected function applyEncoder($value, $propertyUri = '')
    {
        if (empty($propertyUri) === false) {
            $encoders = $this->getEncoders();
            
            if (isset($encoders[$propertyUri]) === true) {
                $encodedValue = call_user_func($encoders[$propertyUri], $value);
                return $encodedValue;
            }
        }
        
        return $value;
    }
protected function applyEncoder ( $ value , $ propertyUri = '' ) { if ( empty ( $ propertyUri ) === false ) { $ encoders = $ this -> getEncoders ( ) ; if ( isset ( $ encoders [ $ propertyUri ] ) === true ) { $ encodedValue = call_user_func ( $ encoders [ $ propertyUri ] , $ value ) ; return $ encodedValue ; } } return $ value ; }
Attempt to apply a specific value encoder.

@param mixed $value
@param string (optional) The URI of the property the $value belongs to.
@return mixed
Attempt to apply a specific value encoder .