File manager - Edit - /var/www/html/portal/app/Enums/Accounts/Cronogramas/CronogramaProjectStatus.php
Back
<?php namespace App\Enums\Accounts\Cronogramas; enum CronogramaProjectStatus: string { case Active = 'active'; case Completed = 'completed'; case Archived = 'archived'; case Closed = 'closed'; public function label(): string { return match ($this) { self::Active => __('Em andamento'), self::Completed => __('ConcluĂdo'), self::Archived => __('Arquivado'), self::Closed => __('Encerrado'), }; } /** * @return list<string> */ public static function values(): array { return array_column(self::cases(), 'value'); } public function isReadOnly(): bool { return in_array($this, [self::Closed, self::Archived], true); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings