Add actual badge classes to bundle
This commit is contained in:
16
src/Interface/BadgeableInterface.php
Normal file
16
src/Interface/BadgeableInterface.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Pcm\BadgeBundle\Interface;
|
||||
|
||||
use Pcm\BadgeBundle\Enum\Badge;
|
||||
|
||||
/**
|
||||
* Enables this class to be rendered as a badge using the Badge and BadgeOutline Twig components.
|
||||
*/
|
||||
interface BadgeableInterface
|
||||
{
|
||||
public function getBadgeColour(): Badge;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user