| Total Complexity | 4 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class Route |
||
| 6 | { |
||
| 7 | |||
| 8 | protected $method; |
||
| 9 | protected $expr; |
||
| 10 | protected $callable; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * instanciate |
||
| 14 | * |
||
| 15 | * @param string $routeItem |
||
| 16 | */ |
||
| 17 | 4 | public function __construct(string $routeItem) |
|
| 31 | } |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * return regexp pattern |
||
| 36 | * |
||
| 37 | * @return string |
||
| 38 | */ |
||
| 39 | 2 | public function getExpr(): string |
|
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * return required request method |
||
| 46 | * |
||
| 47 | * @return string |
||
| 48 | */ |
||
| 49 | 2 | public function getMethod(): string |
|
| 54 |