diff --git a/src/Entity/ActivityEntity.php b/src/Entity/ActivityEntity.php index 78f68f5..cb5ad03 100644 --- a/src/Entity/ActivityEntity.php +++ b/src/Entity/ActivityEntity.php @@ -17,6 +17,7 @@ StatusEnum::OPEN, StatusEnum::IN_PROGRESS, StatusEnum::WAITING, + StatusEnum::POSTPONED, StatusEnum::CLOSED, ]; diff --git a/src/Enum/StatusEnum.php b/src/Enum/StatusEnum.php index 570fb5a..ee0e473 100644 --- a/src/Enum/StatusEnum.php +++ b/src/Enum/StatusEnum.php @@ -18,17 +18,21 @@ /** @var string Actions are planified and nothing is happening before */ public const PLANIFIED = 'planified'; + + /** @var string Activity is postponed */ + public const POSTPONED = 'posetponed'; /** @var No more actions required, success or fail */ public const CLOSED = 'closed'; /** @var array Names of status */ public const STATUS_NAME = [ - 'open' => 'Ouvert', - 'inProgress' => 'En cours', - 'waiting' => 'En attente', - 'planified' => 'Planifié', - 'closed' => 'Clos', + self::OPEN => 'Ouvert', + self::IN_PROGRESS => 'En cours', + self::WAITING => 'En attente', + self::PLANIFIED => 'Planifié', + self::POSTPONED => 'Reporté', + self::CLOSED => 'Clos', ]; /** @var array Status considered active */