'onPirepFiled', ]; private $bidSvc; public function __construct(BidService $bidSvc) { $this->bidSvc = $bidSvc; } /** * When a PIREP is filed, remove any bids * * @param PirepFiled $event * * @throws \UnexpectedValueException * @throws \InvalidArgumentException * @throws \Exception */ public function onPirepFiled(PirepFiled $event): void { $this->bidSvc->removeBidForPirep($event->pirep); } }