PHP Interface Adamgoose\Routing\Annotations\EndpointInterface

Afficher le fichier Open project: adamgoose/laravel-annotations

Méthodes publiques

Méthode Description
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.

Method Details

addPath() public méthode

Add the given path definition to the endpoint.
public addPath ( AbstractPath $path ) : void
$path AbstractPath
Résultat void

getMethodForPath() public méthode

Get the controller method for the given endpoint path.
public getMethodForPath ( AbstractPath $path ) : string
$path AbstractPath
Résultat string

getPaths() public méthode

Get all of the path definitions for an endpoint.
public getPaths ( ) : array
Résultat array

hasPaths() public méthode

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

toRouteDefinition() public méthode

Transform the endpoint into a route definition.
public toRouteDefinition ( ) : string
Résultat string