Route
in package
Pop route class
Tags
Table of Contents
Properties
Methods
- getRouter() : Router
- Method to get the router
- hasRouter() : bool
- Method to check if the router has been registered
- setRouter() : void
- Method to set the router
- url() : string
- Get URL route string for the named route
Properties
$router
Router object
protected
static Router|null
$router
= null
Methods
getRouter()
Method to get the router
public
static getRouter() : Router
Return values
RouterhasRouter()
Method to check if the router has been registered
public
static hasRouter() : bool
Return values
boolsetRouter()
Method to set the router
public
static setRouter(Router $router) : void
Parameters
- $router : Router
url()
Get URL route string for the named route
public
static url(string $routeName[, mixed $params = null ][, bool $fqdn = false ]) : string
Parameters
- $routeName : string
- $params : mixed = null
- $fqdn : bool = false