PHP Trait Adamgoose\Routing\Annotations\EndpointTrait

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.

Méthodes protégées

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

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

implodeArray() protected méthode

Implode the given list into a comma separated string.
protected implodeArray ( array $array ) : string
$array array
Résultat string

middlewareAppliesToMethod() protected méthode

Determine if the middleware applies to a given method.
protected middlewareAppliesToMethod ( string $method, array $middleware ) : boolean
$method string
$middleware array
Résultat boolean