Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
38 | public function sendIntoBattle( |
||
39 | Match $theMatch, |
||
40 | int $player, |
||
41 | int $cardNumber |
||
42 | ): void { |
||
43 | try { |
||
44 | $theMatch->attackWithCard($cardNumber, $player, $this->clock->now()); |
||
45 | } catch (NoSuchCard $noSuchCard) { |
||
46 | //@todo this happened: tried to attack with unknown card |
||
47 | return; |
||
48 | } |
||
49 | $this->eventBag->takeFrom($theMatch); |
||
50 | } |
||
52 |