| Total Complexity | 3 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | final class MoveResult |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @param array<string,string> $namespaces |
||
| 14 | */ |
||
| 15 | 37 | private function __construct( |
|
| 16 | public readonly bool $found, |
||
| 17 | public readonly array $namespaces, |
||
| 18 | ) { |
||
| 19 | 37 | } |
|
| 20 | |||
| 21 | /** |
||
| 22 | * @param array<string,string> $namespaces |
||
| 23 | */ |
||
| 24 | 34 | public static function found(array $namespaces = []): self |
|
| 25 | { |
||
| 26 | 34 | return new self(true, $namespaces); |
|
| 27 | } |
||
| 28 | |||
| 29 | 29 | public static function notFound(): self |
|
| 32 | } |
||
| 33 | } |
||
| 34 |