<?php namespace App\Enum; /** * Enumeration for status */ class StatusEnum { /** @var string When it's not started yet */ public const OPEN = 'open'; /** @var string When it's in progress */ public const IN_PROGRESS = 'inProgress'; /** @var string When it's waiting for something or someone to continue actions */ public const WAITING = 'waiting'; /** @var string Actions are planified and nothing is happening before */ public const PLANIFIED = 'planified'; /** @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', ]; /** @var array Status considered active */ public const ACTIVE_STATUS = [ self::OPEN, self::IN_PROGRESS, self::PLANIFIED, ]; }