get all bids of freight order

This commit is contained in:
Yisroel Baum 2025-12-03 21:58:26 +02:00
parent 14e77d2885
commit fa156fd155
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
5 changed files with 80 additions and 0 deletions

View file

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