get all bids of freight order
This commit is contained in:
parent
14e77d2885
commit
fa156fd155
5 changed files with 80 additions and 0 deletions
|
|
@ -61,4 +61,13 @@ class FakeBidRepository implements BidRepository
|
|||
}
|
||||
return $id;
|
||||
}
|
||||
|
||||
public function findByFreightOrderId(int $freightOrderId): array
|
||||
{
|
||||
return array_filter(
|
||||
$this->existingBids,
|
||||
function (Bid $bid) use ($freightOrderId){
|
||||
return $bid->getFreightOrderId() === $freightOrderId;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue