| Total Complexity | 4 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Coverage | 50% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | final class Consequence implements \Stringable |
||
| 8 | { |
||
| 9 | private const FIGHT = 'fight'; |
||
| 10 | private const TRADE = 'trade'; |
||
| 11 | |||
| 12 | 1 | private function __construct( |
|
| 15 | |||
| 16 | 1 | public static function fight(): self |
|
| 17 | { |
||
| 18 | 1 | return new self(self::FIGHT); |
|
| 19 | } |
||
| 20 | |||
| 21 | public static function trade(): self |
||
| 22 | { |
||
| 23 | return new self(self::TRADE); |
||
| 24 | } |
||
| 25 | |||
| 26 | public function __toString(): string |
||
| 29 | } |
||
| 30 | } |
||
| 31 |