39 lines
655 B
PHP
39 lines
655 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Enums\Credit;
|
||
|
|
|
||
|
|
use Kwaadpepper\Enum\BaseEnumRoutable;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @method static self credit()
|
||
|
|
* @method static self debit()
|
||
|
|
*/
|
||
|
|
class BalanceOperation extends BaseEnumRoutable
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* Enum values
|
||
|
|
*
|
||
|
|
* @return array
|
||
|
|
*/
|
||
|
|
protected static function values(): array
|
||
|
|
{
|
||
|
|
return [
|
||
|
|
'credit' => 0,
|
||
|
|
'debit' => 1
|
||
|
|
];
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Enum labels
|
||
|
|
*
|
||
|
|
* @return array
|
||
|
|
*/
|
||
|
|
protected static function labels(): array
|
||
|
|
{
|
||
|
|
return [
|
||
|
|
'credit' => trans('Créditer un compte'),
|
||
|
|
'debit' => trans('Débiter un compte')
|
||
|
|
];
|
||
|
|
}
|
||
|
|
}
|