| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 44 | private function sendIntoBattle( |
||
| 45 | Match $theMatch, |
||
| 46 | int $thePlayer, |
||
| 47 | int $defender, |
||
| 48 | int $attacker |
||
| 49 | ): void { |
||
| 50 | $theMatch->defendAgainst( |
||
| 51 | $attacker, |
||
| 52 | $defender, |
||
| 53 | $thePlayer, |
||
| 54 | $this->clock->now() |
||
| 55 | ); |
||
| 56 | |||
| 57 | $this->eventBag->takeFrom($theMatch); |
||
| 58 | } |
||
| 60 |