code: public function generate($subject, $status, $color, $format)
      {
          $badge = new Badge($subject, $status, $color, $format);
  
          return $this->getRenderFor($badge->getFormat())->render($badge);
      }
docs: Generate and Render a badge according to the format.
  
  @param $subject
  @param $status
  @param $color
  @param $format
  
  @return Image