original_string: public function getMedia()
      {
          if ($this->media === null) {
              $cache = $this->getMediaCache();
  
              // Use cached media if possible.
              $cacheKey = md5('media' . $this->getCacheKey());
              if (!$media = $cache->get($cacheKey)) {
                  $media = new Media($this->getMediaFolder(), $this->getMediaOrder());
                  $cache->set($cacheKey, $media);
              }
              $this->media = $media;
          }
  
          return $this->media;
      }
code: public function getMedia()
      {
          if ($this->media === null) {
              $cache = $this->getMediaCache();
  
              // Use cached media if possible.
              $cacheKey = md5('media' . $this->getCacheKey());
              if (!$media = $cache->get($cacheKey)) {
                  $media = new Media($this->getMediaFolder(), $this->getMediaOrder());
                  $cache->set($cacheKey, $media);
              }
              $this->media = $media;
          }
  
          return $this->media;
      }
code_tokens: public function getMedia ( ) { if ( $ this -> media === null ) { $ cache = $ this -> getMediaCache ( ) ; // Use cached media if possible. $ cacheKey = md5 ( 'media' . $ this -> getCacheKey ( ) ) ; if ( ! $ media = $ cache -> get ( $ cacheKey ) ) { $ media = new Media ( $ this -> getMediaFolder ( ) , $ this -> getMediaOrder ( ) ) ; $ cache -> set ( $ cacheKey , $ media ) ; } $ this -> media = $ media ; } return $ this -> media ; }
docstring: Gets the associated media collection.
  
  @return MediaCollectionInterface  Representation of associated media.
docstring_tokens: Gets the associated media collection .