Add PHP-doc comments in new methods (routeIsExists, getRouteByName, getUri).
This commit is contained in:
@ -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)) {
|
||||
|
Reference in New Issue
Block a user