public function unserialize($data)
    {
        if (!is_string($data)) {
            throw new \common_exception_InconsistentData('The encoded resource metadata should be provided as a string');
        }

        $metaData = json_decode($data, true);

        if (!is_array($metaData)) {
            throw new \common_exception_InconsistentData('The decoded resource metadata should be an array');
        }
        $this->metaData = $metaData;

        return $this->metaData;
    }
public function unserialize($data)
    {
        if (!is_string($data)) {
            throw new \common_exception_InconsistentData('The encoded resource metadata should be provided as a string');
        }

        $metaData = json_decode($data, true);

        if (!is_array($metaData)) {
            throw new \common_exception_InconsistentData('The decoded resource metadata should be an array');
        }
        $this->metaData = $metaData;

        return $this->metaData;
    }
public function unserialize ( $ data ) { if ( ! is_string ( $ data ) ) { throw new \ common_exception_InconsistentData ( 'The encoded resource metadata should be provided as a string' ) ; } $ metaData = json_decode ( $ data , true ) ; if ( ! is_array ( $ metaData ) ) { throw new \ common_exception_InconsistentData ( 'The decoded resource metadata should be an array' ) ; } $ this -> metaData = $ metaData ; return $ this -> metaData ; }
Unpacks resource metadata from a string.

@param string $data
@return array
@throws \common_exception_InconsistentData
Unpacks resource metadata from a string .