original_string: protected function setFormat($format = null)
      {
          if ($format == '' && $this->image instanceof Image) {
              $format = $this->image->mime;
          }
  
          $this->format = $format ? $format : 'jpg';
  
          return $this;
      }
code: protected function setFormat($format = null)
      {
          if ($format == '' && $this->image instanceof Image) {
              $format = $this->image->mime;
          }
  
          $this->format = $format ? $format : 'jpg';
  
          return $this;
      }
code_tokens: protected function setFormat ( $ format = null ) { if ( $ format == '' && $ this -> image instanceof Image ) { $ format = $ this -> image -> mime ; } $ this -> format = $ format ? $ format : 'jpg' ; return $ this ; }
docstring: Determines output format
  
  @param string $format
docstring_tokens: Determines output format