com\setasign\SetaFramework\Router\DynamicRoute

ParamRoute

File: /SetaFramework/src/Router/DynamicRoute/ParamRoute.php

Class hierarchy

Summary

Constants

PARAM_GET

public const ParamRoute::PARAM_GET = 2

PARAM_GLOBAL

public const ParamRoute::PARAM_GLOBAL = 3

PARAM_POST

public const ParamRoute::PARAM_POST = 1

Properties

$after

public DynamicRoute::$after = ''

$before

public DynamicRoute::$before = ''

$expected

$key

private ParamRoute::$key

$name

$priority

public DynamicRoute::$priority = 50

$strict

private ParamRoute::$strict = false

$type

private ParamRoute::$type

Methods

__construct()

public ParamRoute::__construct (
int $type,
int|string $key,
mixed $expected = null,
bool $strict = false,
?string $name = null,
string $before = '',
string $after = '',
int $priority = \com\setasign\SetaFramework\Router\AbstractRouter::DEFAULT_PRIORITY
)
Parameters
$type: int
 
$key: int|string
 
$expected: mixed
 
$strict: bool
 
$name: ?string
 
$before: string
 
$after: string
 
$priority: int
 

bind()

public DynamicRoute::bind (
string $applicationName,
string $controller,
string $method
): void
Parameters
$applicationName: string
 
$controller: string
 
$method: string
 

build()

public ParamRoute::build (
string $requestPathPrefix
): \com\setasign\SetaFramework\Router\Route\Param
Parameters
$requestPathPrefix: string
 

getBinding()

protected DynamicRoute::getBinding (
void
): array