Files
pcm-badge-bundle/src/Interface/BadgeableInterface.php
2025-02-26 11:36:55 +00:00

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;
}