From 1cf82d74420b7fc4a643f06191727fb110aee4f3 Mon Sep 17 00:00:00 2001 From: Alexander Demidov Date: Fri, 25 May 2012 16:30:45 +0400 Subject: [PATCH] Add PHP-doc comments in new methods (routeIsExists, getRouteByName, getUri). --- app/router/Router.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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)) {