| Total Complexity | 4 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | final class Results |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @param array<string, mixed> $results URI => result mapping |
||
| 16 | */ |
||
| 17 | public function __construct( |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Get result for a specific URI |
||
| 24 | */ |
||
| 25 | public function get(string $uri): mixed |
||
| 26 | { |
||
| 27 | return $this->results[$uri] ?? null; |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Check if result exists for a URI |
||
| 32 | */ |
||
| 33 | public function has(string $uri): bool |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Get all results as array |
||
| 40 | * |
||
| 41 | * @return array<string, mixed> |
||
| 42 | */ |
||
| 43 | public function toArray(): array |
||
| 48 |