Documentation

Route

Table of Contents

$action  : string
$method  : string
$params  : array<string|int, int|string>
$pattern  : string
$secure  : bool
$version  : int
__construct()  : mixed
Creates instance of Route class
getAction()  : string
Returns route action
getMethod()  : string
Returns route HTTP method
getParams()  : array<string|int, int|string>
Returns action params
getPattern()  : string
Returns regulat expression pattern
getVersion()  : int
Returns route version
isSecure()  : bool
Returns secure route state
setParams()  : void
Sets route params

Properties

$action

private string $action

$method

private string $method

$params

private array<string|int, int|string> $params

$pattern

private string $pattern

$secure

private bool $secure

$version

private int $version

Methods

__construct()

Creates instance of Route class

public __construct(int $version, string $method, string $pattern, string $action[, array<string|int, int|string> $params = [] ][, bool $secure = false ]) : mixed
Parameters
$version : int
$method : string
$pattern : string
$action : string
$params : array<string|int, int|string> = []
$secure : bool = false
Return values
mixed

getAction()

Returns route action

public getAction() : string
Return values
string

getMethod()

Returns route HTTP method

public getMethod() : string
Return values
string

getParams()

Returns action params

public getParams() : array<string|int, int|string>
Return values
array<string|int, int|string>

getPattern()

Returns regulat expression pattern

public getPattern() : string
Return values
string

getVersion()

Returns route version

public getVersion() : int
Return values
int

isSecure()

Returns secure route state

public isSecure() : bool
Return values
bool

setParams()

Sets route params

public setParams(array<string|int, int|string> $params) : void
Parameters
$params : array<string|int, int|string>
Return values
void

Search results