| Total Complexity | 3 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | final class FightWolfDecision extends Decision |
||
| 14 | { |
||
| 15 | public function __construct( |
||
| 16 | IntegerValue $order, |
||
| 17 | Player $player, |
||
| 18 | private Wolf $wolf, |
||
| 19 | ) { |
||
| 20 | parent::__construct($order, $player); |
||
| 21 | } |
||
| 22 | |||
| 23 | public function __invoke(): Event |
||
| 24 | { |
||
| 25 | return new FightWolfEvent($this->player, $this->wolf); |
||
| 26 | } |
||
| 27 | |||
| 28 | public function __toString(): string |
||
| 31 | } |
||
| 32 | } |
||
| 33 |