public function getMetadata($name = null)
    {
        if (is_null($name)) {
            return $this->metadata;
        }
        if (!isset($this->metadata[$name])) {
            return false;
        }
        return $this->metadata[$name];
    }
public function getMetadata($name = null)
    {
        if (is_null($name)) {
            return $this->metadata;
        }
        if (!isset($this->metadata[$name])) {
            return false;
        }
        return $this->metadata[$name];
    }
public function getMetadata ( $ name = null ) { if ( is_null ( $ name ) ) { return $ this -> metadata ; } if ( ! isset ( $ this -> metadata [ $ name ] ) ) { return false ; } return $ this -> metadata [ $ name ] ; }
Returns the array of all metadata, or one requested metadata value.

@param string|null $name The name of the metadata to return or null to return all metadata.
@return mixed
Returns the array of all metadata or one requested metadata value .