22 lines
456 B
PHP
22 lines
456 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pcm\BadgeBundle\Interface;
|
|
|
|
use Pcm\BadgeBundle\Enum\BadgeColour;
|
|
|
|
/**
|
|
* Allows rendering the implementing class as a badge using the PCM Badge twig component.
|
|
*/
|
|
interface BadgeableInterface
|
|
{
|
|
/**
|
|
* Get the badge colour that should be used when rendering this object as a badge.
|
|
*
|
|
* @return BadgeColour Colour of badge to render
|
|
*/
|
|
public function getBadgeColour(): BadgeColour;
|
|
}
|
|
|