41 lines
755 B
PHP
41 lines
755 B
PHP
<?php
|
|
|
|
namespace App\Enums\Credit;
|
|
|
|
use Kwaadpepper\Enum\BaseEnumRoutable;
|
|
|
|
/**
|
|
* @method static self pending()
|
|
* @method static self accepted()
|
|
* @method static self refused()
|
|
*/
|
|
class EstimationStatus extends BaseEnumRoutable
|
|
{
|
|
/**
|
|
* Enum values
|
|
*
|
|
* @return array
|
|
*/
|
|
protected static function values(): array
|
|
{
|
|
return [
|
|
'pending' => 0,
|
|
'accepted' => 1,
|
|
'refused' => 2
|
|
];
|
|
}
|
|
|
|
/**
|
|
* Enum labels
|
|
*
|
|
* @return array
|
|
*/
|
|
protected static function labels(): array
|
|
{
|
|
return [
|
|
'pending' => trans('En attente'),
|
|
'accepted' => trans('Acceptée'),
|
|
'refused' => trans('Refusée'),
|
|
];
|
|
}
|
|
}
|