Skip to content

Commit

Permalink
Reverted concrete event reference for IDE completion
Browse files Browse the repository at this point in the history
  • Loading branch information
fazed committed Sep 17, 2024
1 parent e480ccc commit 17e4829
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/EventProcessor/CustomerEventProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@


use Emico\RobinHqLib\Client\RobinClient;
use Emico\RobinHqLib\Event\CustomerEvent;
use Emico\RobinHqLib\Event\EventInterface;

class CustomerEventProcessor implements EventProcessorInterface
Expand All @@ -21,7 +22,7 @@ public function __construct(protected RobinClient $robinClient)
}

/**
* @param EventInterface $event
* @param EventInterface|CustomerEvent $event
* @return bool
*/
public function processEvent(EventInterface $event): bool
Expand Down
3 changes: 2 additions & 1 deletion src/EventProcessor/OrderEventProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

use Emico\RobinHqLib\Client\RobinClient;
use Emico\RobinHqLib\Event\EventInterface;
use Emico\RobinHqLib\Event\OrderEvent;

class OrderEventProcessor implements EventProcessorInterface
{
Expand All @@ -21,7 +22,7 @@ public function __construct(private RobinClient $robinClient)
}

/**
* @param EventInterface $event
* @param EventInterface|OrderEvent $event
* @return bool
*/
public function processEvent(EventInterface $event): bool
Expand Down

0 comments on commit 17e4829

Please sign in to comment.