| Total Complexity | 5 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 7 | final class NotYourTurn extends RuntimeException |
||
| 8 | { |
||
| 9 | public static function cannotPlayCards(): self |
||
| 12 | } |
||
| 13 | |||
| 14 | public static function cannotEndCardPlayingPhase(): self |
||
| 15 | { |
||
| 16 | return new self('Cannot end the card playing phase right now'); |
||
| 17 | } |
||
| 18 | |||
| 19 | public static function cannotDefend(): self |
||
| 20 | { |
||
| 21 | return new self('Cannot block at this time'); |
||
| 22 | } |
||
| 23 | |||
| 24 | public static function cannotAttack(): self |
||
| 27 | } |
||
| 28 | |||
| 29 | public static function cannotStartCombat(): self |
||
| 32 | } |
||
| 33 | } |
||
| 34 |