1 | <?php |
||
20 | class Route |
||
21 | { |
||
22 | /** @var string */ |
||
23 | public $controllerName; |
||
24 | |||
25 | /** @var string */ |
||
26 | public $method; |
||
27 | |||
28 | /** @var string */ |
||
29 | public $uri; |
||
30 | |||
31 | /** @var string[][] */ |
||
32 | public $modifiers; |
||
33 | |||
34 | /** |
||
35 | * @param string $controllerName |
||
36 | * @param string $uri |
||
37 | */ |
||
38 | public function __construct(string $controllerName, string $uri) |
||
45 | |||
46 | /** |
||
47 | * @return string |
||
48 | */ |
||
49 | public function getMethod(): string |
||
53 | |||
54 | /** |
||
55 | * @return string |
||
56 | */ |
||
57 | public function getUri(): string |
||
61 | |||
62 | /** |
||
63 | * @return string |
||
64 | */ |
||
65 | public function getControllerName(): string |
||
69 | |||
70 | /** |
||
71 | * @return string[][] |
||
72 | */ |
||
73 | public function getModifiers(): array |
||
77 | |||
78 | /** |
||
79 | * @param string[][] $modifiers |
||
80 | */ |
||
81 | public function setModifiers(array $modifiers) |
||
85 | } |