22 lines
324 B
PHP
22 lines
324 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Enums;
|
|
|
|
enum WalletTransactionType: string
|
|
{
|
|
case CREDIT = 'credit';
|
|
case DEBIT = 'debit';
|
|
|
|
public function isDebit(): bool
|
|
{
|
|
return $this === self::DEBIT;
|
|
}
|
|
|
|
public function isCredit(): bool
|
|
{
|
|
return $this === self::CREDIT;
|
|
}
|
|
}
|