protected static function jsonUnserializeFromProperties($properties)
    {
        if ( ! is_array($properties) && ! is_object($properties)) {
            throw UnserializationException::invalidProperty('Linked CRS', 'properties', $properties, 'array or object');
        }

        $properties = new \ArrayObject($properties);

        if ( ! $properties->offsetExists('href')) {
            throw UnserializationException::missingProperty('Linked CRS', 'properties.href', 'string');
        }

        $href = (string) $properties['href'];
        $type = isset($properties['type']) ? (string) $properties['type'] : null;

        return new self($href, $type);
    }
protected static function jsonUnserializeFromProperties($properties)
    {
        if ( ! is_array($properties) && ! is_object($properties)) {
            throw UnserializationException::invalidProperty('Linked CRS', 'properties', $properties, 'array or object');
        }

        $properties = new \ArrayObject($properties);

        if ( ! $properties->offsetExists('href')) {
            throw UnserializationException::missingProperty('Linked CRS', 'properties.href', 'string');
        }

        $href = (string) $properties['href'];
        $type = isset($properties['type']) ? (string) $properties['type'] : null;

        return new self($href, $type);
    }
protected static function jsonUnserializeFromProperties ( $ properties ) { if ( ! is_array ( $ properties ) && ! is_object ( $ properties ) ) { throw UnserializationException :: invalidProperty ( 'Linked CRS' , 'properties' , $ properties , 'array or object' ) ; } $ properties = new \ ArrayObject ( $ properties ) ; if ( ! $ properties -> offsetExists ( 'href' ) ) { throw UnserializationException :: missingProperty ( 'Linked CRS' , 'properties.href' , 'string' ) ; } $ href = ( string ) $ properties [ 'href' ] ; $ type = isset ( $ properties [ 'type' ] ) ? ( string ) $ properties [ 'type' ] : null ; return new self ( $ href , $ type ) ; }
Factory method for creating a Linked CRS object from properties.

@see CoordinateReferenceSystem::jsonUnserialize()
@param array|object $properties
@return Linked
@throws UnserializationException
Factory method for creating a Linked CRS object from properties .