Aplus Framework Docs

Route
in package

Class Route.

Table of Contents

$arguments  : string
$methods  : array<string|int, mixed>
$name  : string|null
$origins  : array<string|int, mixed>
$path  : string
__construct()  : mixed
Route constructor.
getArguments()  : string
getMethods()  : array<int, string>
getName()  : string|null
getOrigins()  : array<string|int, string>
getPath()  : string

Properties

$arguments

protected string $arguments

$methods

protected array<string|int, mixed> $methods

$name

protected string|null $name

$origins

protected array<string|int, mixed> $origins

$path

protected string $path

Methods

__construct()

Route constructor.

public __construct(array<int, string>|string $methods, string $path[, string $arguments = '*' ][, string|null $name = null ][, array<string|int, string>|string $origins = [] ]) : mixed
Parameters
$methods : array<int, string>|string

The Route HTTP Methods

$path : string

The Route path

$arguments : string = '*'

The Route action arguments

$name : string|null = null

The Route name

$origins : array<string|int, string>|string = []

The Route origins

Return values
mixed

getArguments()

public getArguments() : string
Return values
string

getMethods()

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

getName()

public getName() : string|null
Return values
string|null

getOrigins()

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

getPath()

public getPath() : string
Return values
string

Search results