original_string: public function generateFromString(string $string)
      {
          $badge = Badge::fromString($string);
  
          return $this->getRendererForFormat($badge->getFormat())->render($badge);
      }
code: public function generateFromString(string $string)
      {
          $badge = Badge::fromString($string);
  
          return $this->getRendererForFormat($badge->getFormat())->render($badge);
      }
code_tokens: public function generateFromString ( string $ string ) { $ badge = Badge :: fromString ( $ string ) ; return $ this -> getRendererForFormat ( $ badge -> getFormat ( ) ) -> render ( $ badge ) ; }
docstring: Generates a badge from a string.
  
  Example: license-MIT-blue.svg
  
  @param string $string
  
  @return \AltThree\Badger\BadgeImage
docstring_tokens: Generates a badge from a string .