original_string: public function getAttribute($key)
      {
          if (array_key_exists($key, $this->getMediaFiles())) {
              return $this->media_files[$key];
          }
  
          return parent::getAttribute($key);
      }
code: public function getAttribute($key)
      {
          if (array_key_exists($key, $this->getMediaFiles())) {
              return $this->media_files[$key];
          }
  
          return parent::getAttribute($key);
      }
code_tokens: public function getAttribute ( $ key ) { if ( array_key_exists ( $ key , $ this -> getMediaFiles ( ) ) ) { return $ this -> media_files [ $ key ] ; } return parent :: getAttribute ( $ key ) ; }
docstring: Handle the dynamic retrieval of media items.
  
  @param string $key
  
  @return mixed
docstring_tokens: Handle the dynamic retrieval of media items .