Files
mautic-marketing-program-bu…/Entity/TargetPriority.php
T
Alexandre Gain 8696acd01c feat: Add TargetType form and migration for plan targets
- Implemented TargetType form for managing target details including name, type, priority, stages, estimated size, profile criteria, pain points, value proposition, and preferred channels.
- Created migration scripts for adding type and priority columns to plan objectives and tasks.
- Added migration for creating plan targets and plan target stages tables, including foreign key constraints.
- Introduced stakeholder management with forms and views for creating, editing, and listing stakeholders.
- Enhanced UI with read more functionality for long text descriptions and filtering options in plan tab tables.
2026-11-08 11:54:25 +01:00

30 lines
672 B
PHP

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