Browse Source

Add PHP-doc comments in new methods (routeIsExists, getRouteByName, getUri).

master
Alexander Demidov 13 years ago
parent
commit
1cf82d7442
  1. 13
      app/router/Router.php

13
app/router/Router.php

@ -64,16 +64,29 @@ class Router
return $this->route; return $this->route;
} }
/**
* @param $name
* @return bool
*/
protected function routeIsExists($name) protected function routeIsExists($name)
{ {
return array_key_exists($name, $this->routes); return array_key_exists($name, $this->routes);
} }
/**
* @param $name
* @return Route
*/
protected function getRouteByName($name) protected function getRouteByName($name)
{ {
return $this->routes[$name]; return $this->routes[$name];
} }
/**
* @param null $route_name
* @return string
* @throws ErrorException
*/
public function getUri($route_name = null) public function getUri($route_name = null)
{ {
if (is_null($route_name)) { if (is_null($route_name)) {

Loading…
Cancel
Save