22 lines
441 B
PHP
22 lines
441 B
PHP
<?php
|
|
namespace App\Domain\Points\Enums;
|
|
|
|
use Spatie\Enum\Laravel\Enum;
|
|
|
|
/**
|
|
* @method static self COMING()
|
|
* @method static self EXPENSE()
|
|
* @method static self PENDING()
|
|
*/
|
|
final class DirectionEnum extends Enum
|
|
{
|
|
protected static function values(): array
|
|
{
|
|
return [
|
|
'COMING' => 0, // приход
|
|
'EXPENSE' => 1, //расход
|
|
'PENDING' => 2, //ожидание
|
|
];
|
|
}
|
|
}
|