| 1 | <?php |
||
| 11 | class Route |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | private $name; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | private $url; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | private $controller; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var string |
||
| 30 | */ |
||
| 31 | private $action; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param string $name |
||
| 35 | * @param $url |
||
| 36 | * @param string $controller |
||
| 37 | * @param string $action |
||
| 38 | */ |
||
| 39 | 15 | public function __construct($name, $url, $controller, $action) |
|
| 46 | |||
| 47 | /** |
||
| 48 | * @return string |
||
| 49 | */ |
||
| 50 | 15 | public function getName() |
|
| 54 | |||
| 55 | /** |
||
| 56 | * @return string |
||
| 57 | */ |
||
| 58 | 11 | public function getUrl() |
|
| 62 | |||
| 63 | /** |
||
| 64 | * @return string |
||
| 65 | */ |
||
| 66 | 8 | public function getController() |
|
| 70 | |||
| 71 | /** |
||
| 72 | * @return string |
||
| 73 | */ |
||
| 74 | 8 | public function getAction() |
|
| 78 | } |
||
| 79 |