mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 12:33:56 +00:00
22 lines
412 B
PHP
22 lines
412 B
PHP
<?php
|
|
|
|
namespace App\Classes\Modules\Wallets\Services;
|
|
|
|
|
|
use App\Models\WalletTransaction;
|
|
|
|
class ChecksIfWalletTransactionBillNoExists
|
|
{
|
|
|
|
private $repository;
|
|
|
|
public function __construct(WalletTransaction $repository)
|
|
{
|
|
$this->repository = $repository;
|
|
}
|
|
|
|
public function execute(int $bill_no): bool {
|
|
return $this->repository->where('bill_no', $bill_no)->exists();
|
|
}
|
|
|
|
} |