| Total Complexity | 3 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 5 | ||
| Bugs | 2 | Features | 0 |
| 1 | <?php |
||
| 9 | class RouterMatch |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Request method |
||
| 13 | * |
||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | public $method; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Request path |
||
| 20 | * |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | public $path; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Request query |
||
| 27 | * |
||
| 28 | * @var array<string, mixed> |
||
| 29 | */ |
||
| 30 | 2 | public $query = []; |
|
| 31 | |||
| 32 | 2 | /** |
|
| 33 | * @param array<string, mixed> $query |
||
| 34 | 2 | */ |
|
| 35 | public function __construct(string $method = '', string $path = '', array $query = []) |
||
| 36 | { |
||
| 37 | $this->method = $method; |
||
| 38 | $this->path = $path; |
||
| 39 | $this->query = $query; |
||
| 40 | } |
||
| 41 | |||
| 42 | public function __toString(): string |
||
| 47 | } |
||
| 48 | } |
||
| 49 |