| Total Complexity | 6 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 12 | final class HandAdjuster implements EventHandler |
||
| 13 | { |
||
| 14 | private $cardsInHand; |
||
| 15 | private $cards; |
||
| 16 | |||
| 17 | public function __construct(CardsInHand $cardsInHand, AllCards $allCards) |
||
| 21 | } |
||
| 22 | |||
| 23 | public function events(): iterable |
||
| 24 | { |
||
| 25 | return [ |
||
| 26 | UnitMovedIntoPlay::class, |
||
| 27 | SpellVanishedToTheVoid::class, |
||
| 28 | CardWasDrawn::class, |
||
| 29 | ]; |
||
| 30 | } |
||
| 31 | |||
| 32 | public function handle(DomainEvent $event): void |
||
| 48 | ); |
||
| 49 | } |
||
| 52 |