diff --git a/app/router/Router.php b/app/router/Router.php index 1f77dac..913769a 100644 --- a/app/router/Router.php +++ b/app/router/Router.php @@ -64,16 +64,29 @@ class Router return $this->route; } + /** + * @param $name + * @return bool + */ protected function routeIsExists($name) { return array_key_exists($name, $this->routes); } + /** + * @param $name + * @return Route + */ protected function getRouteByName($name) { return $this->routes[$name]; } + /** + * @param null $route_name + * @return string + * @throws ErrorException + */ public function getUri($route_name = null) { if (is_null($route_name)) {