1 | <?php |
||
17 | class Route implements ImmutableContainerAwareInterface, MiddlewareAwareInterface, StrategyAwareInterface |
||
18 | { |
||
19 | use ImmutableContainerAwareTrait; |
||
20 | use MiddlewareAwareTrait; |
||
21 | use RouteConditionTrait; |
||
22 | use StrategyAwareTrait; |
||
23 | |||
24 | /** |
||
25 | * @var string|callable |
||
26 | */ |
||
27 | protected $callable; |
||
28 | |||
29 | /** |
||
30 | * @var \League\Route\RouteGroup |
||
31 | */ |
||
32 | protected $group; |
||
33 | |||
34 | /** |
||
35 | * @var string[] |
||
36 | */ |
||
37 | protected $methods = []; |
||
38 | |||
39 | /** |
||
40 | * @var string |
||
41 | */ |
||
42 | protected $path; |
||
43 | |||
44 | /** |
||
45 | * Dispatch the route via the attached strategy. |
||
46 | * |
||
47 | * @param array $vars |
||
48 | * |
||
49 | * @return \League\Route\Middleware\ExecutionChain |
||
50 | */ |
||
51 | public function getExecutionChain(array $vars) |
||
55 | |||
56 | /** |
||
57 | * Get the callable. |
||
58 | * |
||
59 | * @throws \RuntimeException |
||
60 | * |
||
61 | * @return callable |
||
62 | */ |
||
63 | public function getCallable() |
||
95 | |||
96 | /** |
||
97 | * Set the callable. |
||
98 | * |
||
99 | * @param string|callable $callable |
||
100 | * |
||
101 | * @return \League\Route\Route |
||
102 | */ |
||
103 | public function setCallable($callable) |
||
109 | |||
110 | /** |
||
111 | * Get the parent group. |
||
112 | * |
||
113 | * @return \League\Route\RouteGroup |
||
114 | */ |
||
115 | public function getParentGroup() |
||
119 | |||
120 | /** |
||
121 | * Set the parent group. |
||
122 | * |
||
123 | * @param \League\Route\RouteGroup $group |
||
124 | * |
||
125 | * @return \League\Route\Route |
||
126 | */ |
||
127 | public function setParentGroup(RouteGroup $group) |
||
133 | |||
134 | /** |
||
135 | * Get the path. |
||
136 | * |
||
137 | * @return string |
||
138 | */ |
||
139 | public function getPath() |
||
143 | |||
144 | /** |
||
145 | * Set the path. |
||
146 | * |
||
147 | * @param string $path |
||
148 | * |
||
149 | * @return \League\Route\Route |
||
150 | */ |
||
151 | public function setPath($path) |
||
157 | |||
158 | /** |
||
159 | * Get the methods. |
||
160 | * |
||
161 | * @return string[] |
||
162 | */ |
||
163 | public function getMethods() |
||
167 | |||
168 | /** |
||
169 | * Get the methods. |
||
170 | * |
||
171 | * @param string[] $methods |
||
172 | * |
||
173 | * @return \League\Route\Route |
||
174 | */ |
||
175 | public function setMethods(array $methods) |
||
181 | } |
||
182 |