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