protected function getPathValue($key, $properties)
    {
        if (!array_key_exists($key, $properties)) {
            return null;
        }

        return new ObjectPathValue($key, $properties[$key]);
    }
protected function getPathValue($key, $properties)
    {
        if (!array_key_exists($key, $properties)) {
            return null;
        }

        return new ObjectPathValue($key, $properties[$key]);
    }
protected function getPathValue ( $ key , $ properties ) { if ( ! array_key_exists ( $ key , $ properties ) ) { return null ; } return new ObjectPathValue ( $ key , $ properties [ $ key ] ) ; }
Given a key and a collection of properties, this method
will return an ObjectPathValue if possible.

@param $key
@param $properties
@return null|ObjectPathValue
Given a key and a collection of properties this method will return an ObjectPathValue if possible .