PHP Интерфейс Adamgoose\Routing\Annotations\EndpointInterface

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

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

Метод Описание
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.
getPaths ( ) : array Get all of the path definitions for an endpoint.
hasPaths ( ) Determine if the endpoint has any paths.
toRouteDefinition ( ) : string Transform the endpoint into a route definition.

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

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

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

Get all of the path definitions for an endpoint.
public getPaths ( ) : array
Результат array

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

Determine if the endpoint has any paths.
public hasPaths ( )

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

Transform the endpoint into a route definition.
public toRouteDefinition ( ) : string
Результат string