Files
mautic-marketing-program-bu…/Entity/TaskStatus.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

35 lines
809 B
PHP

<?php
declare(strict_types=1);
namespace MauticPlugin\ProgramBundle\Entity;
/**
* Task status. The order of the cases is the order of the dropdown on the task form.
*/
enum TaskStatus: string
{
case New = 'new';
case Todo = 'todo';
case InProgress = 'in_progress';
case Done = 'done';
public function getLabelKey(): string
{
return 'mautic.program.task.status.'.$this->value;
}
/**
* Bootstrap label class for the status badge in lists.
*/
public function getLabelClass(): string
{
return match ($this) {
self::New => 'label-default',
self::Todo => 'label-info',
self::InProgress => 'label-warning',
self::Done => 'label-success',
};
}
}