| 1 | <?php |
||
| 4 | class RouteInfo implements RouteInfoInterface |
||
| 5 | { |
||
| 6 | private $name; |
||
| 7 | private $callable; |
||
| 8 | private $params; |
||
| 9 | |||
| 10 | 13 | public function __construct($name, callable $callable, $params = []) |
|
| 11 | { |
||
| 12 | 13 | $this->name = $name; |
|
| 13 | 13 | $this->callable = $callable; |
|
| 14 | 13 | $this->params = $params; |
|
| 15 | 13 | } |
|
| 16 | |||
| 17 | 12 | public function getName() |
|
| 21 | |||
| 22 | 10 | public function getCallable() |
|
| 26 | |||
| 27 | 10 | public function getParams() |
|
| 31 | } |
||
| 32 |