adrema/app/Invoice/Queries/SingleMemberQuery.php

23 lines
436 B
PHP
Raw Normal View History

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
use App\Member\Member;
use Illuminate\Database\Eloquent\Builder;
2023-04-18 22:08:45 +02:00
class SingleMemberQuery extends InvoiceMemberQuery
2022-12-06 23:58:44 +01:00
{
public function __construct(
private Member $member
) {
}
/**
* @return Builder<Member>
*/
protected function getQuery(): Builder
{
return Member::where($this->member->only(['lastname', 'address', 'zip', 'location']));
}
}