for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace Formularium\Frontend\Bootstrapvue\Element;
use Formularium\Element;
use Formularium\HTMLNode;
use Formularium\Frontend\HTML\Element\Badge as HTMLBadge;
use Formularium\Metadata;
class Badge extends Element
{
public function render(array $parameters, HTMLNode $previous): HTMLNode
$previous->setTag('b-badge');
$badgeMode = 'primary'; // TODO
$previous->addAttribute('variant', $badgeMode);
return $previous;
}
public static function getMetadata(): Metadata
$metadata = HTMLBadge::getMetadata();
return $metadata;