public function generateFromString(string $string)
    {
        $badge = Badge::fromString($string);

        return $this->getRendererForFormat($badge->getFormat())->render($badge);
    }
public function generateFromString(string $string)
    {
        $badge = Badge::fromString($string);

        return $this->getRendererForFormat($badge->getFormat())->render($badge);
    }
public function generateFromString ( string $ string ) { $ badge = Badge :: fromString ( $ string ) ; return $ this -> getRendererForFormat ( $ badge -> getFormat ( ) ) -> render ( $ badge ) ; }
Generates a badge from a string.

Example: license-MIT-blue.svg

@param string $string

@return \AltThree\Badger\BadgeImage
Generates a badge from a string .