| 1 | <?php  | 
            ||
| 5 | class Route implements RouteInterface  | 
            ||
| 6 | { | 
            ||
| 7 | /**  | 
            ||
| 8 | * @var string $uri The URI.  | 
            ||
| 9 | */  | 
            ||
| 10 | protected $uri;  | 
            ||
| 11 | |||
| 12 | |||
| 13 | /**  | 
            ||
| 14 | * @var string $controller The controller name.  | 
            ||
| 15 | */  | 
            ||
| 16 | protected $controller;  | 
            ||
| 17 | |||
| 18 | |||
| 19 | /**  | 
            ||
| 20 | * @var string $action The controller action name.  | 
            ||
| 21 | */  | 
            ||
| 22 | protected $action;  | 
            ||
| 23 | |||
| 24 | |||
| 25 | /**  | 
            ||
| 26 | * @var string $type The request type.  | 
            ||
| 27 | */  | 
            ||
| 28 | protected $requestType;  | 
            ||
| 29 | |||
| 30 | |||
| 31 | /**  | 
            ||
| 32 | * @param string $uri The URI.  | 
            ||
| 33 | * @param string $controller The controller name.  | 
            ||
| 34 | * @param string $action The controller action name.  | 
            ||
| 35 | * @param string $requestType The request type.  | 
            ||
| 36 | */  | 
            ||
| 37 | public function __construct($uri, $controller, $action, $requestType = 'GET')  | 
            ||
| 44 | |||
| 45 | |||
| 46 | /**  | 
            ||
| 47 | * @return string The URI.  | 
            ||
| 48 | */  | 
            ||
| 49 | public function getUri()  | 
            ||
| 53 | |||
| 54 | |||
| 55 | /**  | 
            ||
| 56 | * @return string The request type.  | 
            ||
| 57 | */  | 
            ||
| 58 | public function getRequestType()  | 
            ||
| 62 | |||
| 63 | |||
| 64 | /**  | 
            ||
| 65 | * @return string The controller name.  | 
            ||
| 66 | */  | 
            ||
| 67 | public function getController()  | 
            ||
| 71 | |||
| 72 | |||
| 73 | /**  | 
            ||
| 74 | * @return string The controller action name.  | 
            ||
| 75 | */  | 
            ||
| 76 | public function getAction()  | 
            ||
| 80 | }  | 
            ||
| 81 |