public function getMetadata($key)
    {
        if (!is_array($this->metadata)) {
            $this->metadata = json_decode(json_encode($this->metadata), true);
        }
        return (isset($this->metadata[$key])) ? $this->metadata[$key] : null;
    }
public function getMetadata($key)
    {
        if (!is_array($this->metadata)) {
            $this->metadata = json_decode(json_encode($this->metadata), true);
        }
        return (isset($this->metadata[$key])) ? $this->metadata[$key] : null;
    }
public function getMetadata ( $ key ) { if ( ! is_array ( $ this -> metadata ) ) { $ this -> metadata = json_decode ( json_encode ( $ this -> metadata ) , true ) ; } return ( isset ( $ this -> metadata [ $ key ] ) ) ? $ this -> metadata [ $ key ] : null ; }
Get the current metadata value for the provided key.
@param string $key
@return string|NULL
Get the current metadata value for the provided key .