original_string: protected function setMedia(MediaCollectionInterface $media)
      {
          $cache = $this->getMediaCache();
          $cacheKey = md5('media' . $this->getCacheKey());
          $cache->set($cacheKey, $media);
  
          $this->media = $media;
  
          return $this;
      }
code: protected function setMedia(MediaCollectionInterface $media)
      {
          $cache = $this->getMediaCache();
          $cacheKey = md5('media' . $this->getCacheKey());
          $cache->set($cacheKey, $media);
  
          $this->media = $media;
  
          return $this;
      }
code_tokens: protected function setMedia ( MediaCollectionInterface $ media ) { $ cache = $ this -> getMediaCache ( ) ; $ cacheKey = md5 ( 'media' . $ this -> getCacheKey ( ) ) ; $ cache -> set ( $ cacheKey , $ media ) ; $ this -> media = $ media ; return $ this ; }
docstring: Sets the associated media collection.
  
  @param  MediaCollectionInterface  $media Representation of associated media.
  @return $this
docstring_tokens: Sets the associated media collection .