Files
mautic-marketing-program-bu…/Entity/AudiencePriority.php
T
Alexandre Gain 71ff11390b refactor(plugin): rename Plan to Program and add audience/UTM routes
Rename the Plan bundle to Program across config, routes, menus, and
controllers (Plan -> Initiative), bump version to 0.16.0, and introduce
new audience and UTM taxonomy routes and permissions to support the
expanded Programs feature set.
2026-11-13 22:01:32 +01:00

30 lines
697 B
PHP

<?php
declare(strict_types=1);
namespace MauticPlugin\ProgramBundle\Entity;
/**
* How important an initiative's audience is to the initiative. The order of the cases is the order of the dropdown.
*/
enum AudiencePriority: string
{
case Primary = 'primary';
case Secondary = 'secondary';
case Exclusion = 'exclusion';
public function getLabelKey(): string
{
return 'mautic.program.audience.priority.'.$this->value;
}
public function getLabelClass(): string
{
return match ($this) {
self::Primary => 'label-success',
self::Secondary => 'label-info',
self::Exclusion => 'label-danger',
};
}
}