original_string: public function display($mode = 'source')
      {
          if ($this->mode === $mode) {
              return $this;
          }
  
  
          $this->mode = $mode;
  
          return $mode === 'thumbnail' ? ($this->getThumbnail() ? $this->getThumbnail()->reset() : null) : $this->reset();
      }
code: public function display($mode = 'source')
      {
          if ($this->mode === $mode) {
              return $this;
          }
  
  
          $this->mode = $mode;
  
          return $mode === 'thumbnail' ? ($this->getThumbnail() ? $this->getThumbnail()->reset() : null) : $this->reset();
      }
code_tokens: public function display ( $ mode = 'source' ) { if ( $ this -> mode === $ mode ) { return $ this ; } $ this -> mode = $ mode ; return $ mode === 'thumbnail' ? ( $ this -> getThumbnail ( ) ? $ this -> getThumbnail ( ) -> reset ( ) : null ) : $ this -> reset ( ) ; }
docstring: Switch display mode.
  
  @param string $mode
  
  @return $this
docstring_tokens: Switch display mode .