public function setMetadata(array $metadata)
    {
        $this->metadata = [];

        foreach ($metadata as $item) {
            $this->addMetaData($item);
        }

        return $this;
    }
public function setMetadata(array $metadata)
    {
        $this->metadata = [];

        foreach ($metadata as $item) {
            $this->addMetaData($item);
        }

        return $this;
    }
public function setMetadata ( array $ metadata ) { $ this -> metadata = [ ] ; foreach ( $ metadata as $ item ) { $ this -> addMetaData ( $ item ) ; } return $ this ; }
Sets the "metadata" of the MediaResponse.

@param MetaData[] $metadata

@return MediaResponse
Sets the metadata of the MediaResponse .