original_string: public function format($format)
      {
          if (!$this->image) {
              $this->image();
          }
  
          $this->format = $format;
  
          return $this;
      }
code: public function format($format)
      {
          if (!$this->image) {
              $this->image();
          }
  
          $this->format = $format;
  
          return $this;
      }
code_tokens: public function format ( $ format ) { if ( ! $ this -> image ) { $ this -> image ( ) ; } $ this -> format = $ format ; return $ this ; }
docstring: Sets image output format.
  
  @param string $format
  @return $this
docstring_tokens: Sets image output format .