\Vegas\Mvc\RouterRoute

Class Route Object representation of route

Summary

Methods
Properties
Constants
__construct()
getName()
getRoute()
getPaths()
getParams()
getParam()
setParam()
hasParam()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct( $name,  $routeArray)

Constructor

Parameters

$name

Name of route

$routeArray

getName()

getName() : string

Returns name of route

Returns

string

getRoute()

getRoute() : string

Returns route

Returns

string

getPaths()

getPaths() : array

Returns route paths

Returns

array

getParams()

getParams() : array

Returns additional route params

Returns

array

getParam()

getParam( $param) : null

Return indicated param if exists

Parameters

$param

Returns

null

setParam()

setParam( $param,  $value) : $this

Adds route param

Parameters

$param
$value

Returns

$this

hasParam()

hasParam( $param) : null

Determines if route has an indicated param

Parameters

$param

Returns

null