public function generate(string $subject, string $status, string $color, string $format)
    {
        $badge = new Badge($subject, $status, $color, $format);

        return $this->getRendererForFormat($badge->getFormat())->render($badge);
    }
public function generate(string $subject, string $status, string $color, string $format)
    {
        $badge = new Badge($subject, $status, $color, $format);

        return $this->getRendererForFormat($badge->getFormat())->render($badge);
    }
public function generate ( string $ subject , string $ status , string $ color , string $ format ) { $ badge = new Badge ( $ subject , $ status , $ color , $ format ) ; return $ this -> getRendererForFormat ( $ badge -> getFormat ( ) ) -> render ( $ badge ) ; }
Generates a badge.

@param string $subject
@param string $status
@param string $color
@param string $format

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