Files
exchange-2.0/app/Classes/Modules/Wallets/Services/ChecksIfWalletTransactionBillNoExists.php
T
2020-12-07 13:59:10 +08:00

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();
}
}