PHP Трейт Adamgoose\Routing\Annotations\EndpointTrait

Показать файл Открыть проект

Открытые методы

Метод Описание
addPath ( AbstractPath $path ) : void Add the given path definition to the endpoint.
getMethodForPath ( AbstractPath $path ) : string Get the controller method for the given endpoint path.

Защищенные методы

Метод Описание
implodeArray ( array $array ) : string Implode the given list into a comma separated string.
middlewareAppliesToMethod ( string $method, array $middleware ) : boolean Determine if the middleware applies to a given method.

Описание методов

addPath() публичный метод

Add the given path definition to the endpoint.
public addPath ( AbstractPath $path ) : void
$path AbstractPath
Результат void

getMethodForPath() публичный метод

Get the controller method for the given endpoint path.
public getMethodForPath ( AbstractPath $path ) : string
$path AbstractPath
Результат string

implodeArray() защищенный метод

Implode the given list into a comma separated string.
protected implodeArray ( array $array ) : string
$array array
Результат string

middlewareAppliesToMethod() защищенный метод

Determine if the middleware applies to a given method.
protected middlewareAppliesToMethod ( string $method, array $middleware ) : boolean
$method string
$middleware array
Результат boolean