2022-12-06 23:58:44 +01:00
|
|
|
<?php
|
|
|
|
|
2023-04-18 22:08:45 +02:00
|
|
|
namespace App\Invoice\Queries;
|
2022-12-06 23:58:44 +01:00
|
|
|
|
2023-04-18 22:08:45 +02:00
|
|
|
use App\Invoice\BillKind;
|
2022-12-06 23:58:44 +01:00
|
|
|
use App\Member\Member;
|
|
|
|
use Illuminate\Database\Eloquent\Builder;
|
|
|
|
|
2023-04-18 22:08:45 +02:00
|
|
|
class BillKindQuery extends InvoiceMemberQuery
|
2022-12-06 23:58:44 +01:00
|
|
|
{
|
|
|
|
public function __construct(
|
|
|
|
private BillKind $billKind
|
|
|
|
) {
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return Builder<Member>
|
|
|
|
*/
|
|
|
|
protected function getQuery(): Builder
|
|
|
|
{
|
|
|
|
return Member::where('bill_kind', $this->billKind);
|
|
|
|
}
|
|
|
|
}
|