original_string: public function thumbnail($type = 'auto')
      {
          if ($type !== 'auto' && !\in_array($type, $this->thumbnailTypes, true)) {
              return $this;
          }
  
          if ($this->thumbnailType !== $type) {
              $this->_thumbnail = null;
          }
  
          $this->thumbnailType = $type;
  
          return $this;
      }
code: public function thumbnail($type = 'auto')
      {
          if ($type !== 'auto' && !\in_array($type, $this->thumbnailTypes, true)) {
              return $this;
          }
  
          if ($this->thumbnailType !== $type) {
              $this->_thumbnail = null;
          }
  
          $this->thumbnailType = $type;
  
          return $this;
      }
code_tokens: public function thumbnail ( $ type = 'auto' ) { if ( $ type !== 'auto' && ! \ in_array ( $ type , $ this -> thumbnailTypes , true ) ) { return $ this ; } if ( $ this -> thumbnailType !== $ type ) { $ this -> _thumbnail = null ; } $ this -> thumbnailType = $ type ; return $ this ; }
docstring: Switch thumbnail.
  
  @param string $type
  
  @return $this
docstring_tokens: Switch thumbnail .