public function setMetadata($key, $value)
    {
        if (is_null($this->metadataCache))
        {
            $this->metadataCache = [];
        }

        $this->metadataCache[$key] = $value;
    }
public function setMetadata($key, $value)
    {
        if (is_null($this->metadataCache))
        {
            $this->metadataCache = [];
        }

        $this->metadataCache[$key] = $value;
    }
public function setMetadata ( $ key , $ value ) { if ( is_null ( $ this -> metadataCache ) ) { $ this -> metadataCache = [ ] ; } $ this -> metadataCache [ $ key ] = $ value ; }
Setter for metadata

@param string $key
@param mixed $value
Setter for metadata