| Total Complexity | 2 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | final class ActionOrder extends Collection |
||
| 11 | { |
||
| 12 | public static function resolve(Fighter ...$fighters): self |
||
| 13 | { |
||
| 14 | return new self( |
||
| 15 | sort( |
||
| 16 | static fn(Fighter $one, Fighter $another) => |
||
| 17 | $another->getInitiative()->get() <=> $one->getInitiative()->get(), |
||
| 18 | $fighters, |
||
| 19 | ), |
||
| 20 | ); |
||
| 21 | } |
||
| 22 | |||
| 23 | protected function getType(): string |
||
| 26 | } |
||
| 27 | } |
||
| 28 |