| Total Complexity | 5 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | class Route |
||
| 16 | { |
||
| 17 | public const METHOD_GET = 'GET'; |
||
| 18 | public const METHOD_POST = 'POST'; |
||
| 19 | public const METHOD_PUT = 'PUT'; |
||
| 20 | public const METHOD_DELETE = 'DELETE'; |
||
| 21 | |||
| 22 | protected $path; |
||
| 23 | protected $method; |
||
| 24 | protected $parameters; |
||
| 25 | |||
| 26 | public function __construct(string $path, string $method, array $parameters = []) |
||
| 34 | 10 | } |
|
| 35 | 5 | ||
| 36 | /** |
||
| 37 | 5 | * @return string |
|
| 38 | 5 | */ |
|
| 39 | 5 | public function getPath(): string |
|
| 46 | 5 | } |
|
| 47 | |||
| 48 | /** |
||
| 49 | * @return string |
||
| 50 | */ |
||
| 51 | public function getMethod(): string |
||
| 56 |