| 1 | <?php |
||
| 7 | class IncidentStatus extends EnumColumn |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Statuses. |
||
| 11 | */ |
||
| 12 | const STORED = 'stored'; |
||
| 13 | const DELETED = 'deleted'; |
||
| 14 | const SUPPRESSED = 'suppressed'; |
||
| 15 | const LAST = 'last'; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Values. |
||
| 19 | */ |
||
| 20 | const VALUES = [self::STORED, self::DELETED, self::SUPPRESSED, self::LAST]; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Default values. |
||
| 24 | */ |
||
| 25 | const DEFAULT = self::LAST; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @return bool |
||
| 29 | */ |
||
| 30 | public function isLast(): bool |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @return bool |
||
| 37 | */ |
||
| 38 | public function isStored(): bool |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return bool |
||
| 45 | */ |
||
| 46 | public function isDeleted(): bool |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @return bool |
||
| 53 | */ |
||
| 54 | public function isSuppressed(): bool |
||
| 58 | |||
| 59 | public function setStored() |
||
| 63 | |||
| 64 | public function setDeleted() |
||
| 68 | |||
| 69 | public function setSuppressed() |
||
| 73 | } |