\Quark\RouterRoute

Route class.

Summary

Methods
Properties
Constants
__construct()
getPath()
setPath()
getMethods()
setMethods()
getName()
setName()
getRedirect()
setRedirect()
getLayout()
setLayout()
getParameters()
setParameters()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$path
$options
$methods
$name
$redirect
$layout
$parameters
N/A

Properties

$path

$path : string

Type

string — Route path.

$options

$options : array

Type

array — Route options.

$methods

$methods : array

Type

array — Available route methods.

$name

$name : string

Type

string — Route name.

$redirect

$redirect : string

Type

string — Route redirect.

$layout

$layout : string

Type

string — Route layout.

$parameters

$parameters : array

Type

array — Route parameters.

Methods

__construct()

__construct(string  $path, array  $options = array()) 

Creates an instance of Route.

Parameters

string $path

Route path.

array $options

Route options.

getPath()

getPath() : string

Get route path.

Returns

string —

Route path.

setPath()

setPath(string  $path) 

Set route path.

Parameters

string $path

Route path.

getMethods()

getMethods() : string

Get route methods.

Returns

string —

Route methods.

setMethods()

setMethods(array  $methods) 

Set route methods.

Parameters

array $methods

Route methods.

getName()

getName() : string

Get route name.

Returns

string —

Route name.

setName()

setName(string  $name) 

Set route name.

Parameters

string $name

Route name.

getRedirect()

getRedirect() : string

Get route redirect.

Returns

string —

Route redirect.

setRedirect()

setRedirect(string  $redirect) 

Set route redirect.

Parameters

string $redirect

Route redirect.

getLayout()

getLayout() : string

Get route layout.

Returns

string —

Route layout.

setLayout()

setLayout(string  $layout) 

Set route layout.

Parameters

string $layout

Route layout.

getParameters()

getParameters() : array

Get route parameters.

Returns

array —

Route parameters.

setParameters()

setParameters(array  $parameters) 

Set route parameters.

Parameters

array $parameters

Route parameters.