PHP Class Adamgoose\Routing\Annotations\MethodEndpoint

Inheritance: implements Adamgoose\Routing\Annotations\EndpointInterface, use trait EndpointTrait
Afficher le fichier Open project: adamgoose/laravel-annotations Class Usage Examples

Méthodes publiques

Свойство Type Description
$classMiddleware array All of the class level "inherited" middleware defined for the pathless endpoint.
$method string The method that handles the route.
$middleware array All of the middleware defined for the pathless endpoint.
$paths array[Path] The route paths for the definition.
$reflection ReflectionClass The ReflectionClass instance for the controller class.
$uses string The controller and method that handles the route.

Méthodes publiques

Méthode Description
__construct ( array $attributes = [] ) : void Create a new route definition instance.
getPaths ( ) : array Get all of the path definitions for an endpoint.
hasPaths ( ) : boolean Determine if the endpoint has any paths.
toRouteDefinition ( ) : string Transform the endpoint into a route definition.

Méthodes protégées

Méthode Description
getClassMiddlewareForPath ( AbstractPath $path ) : array Get the class middleware for the given path.
getMiddleware ( AbstractPath $path ) : array Get the middleware for the path.
getTemplate ( ) : string Get the template for the endpoint.

Method Details

__construct() public méthode

Create a new route definition instance.
public __construct ( array $attributes = [] ) : void
$attributes array
Résultat void

getClassMiddlewareForPath() protected méthode

Get the class middleware for the given path.
protected getClassMiddlewareForPath ( AbstractPath $path ) : array
$path AbstractPath
Résultat array

getMiddleware() protected méthode

Get the middleware for the path.
protected getMiddleware ( AbstractPath $path ) : array
$path AbstractPath
Résultat array

getPaths() public méthode

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

getTemplate() protected méthode

Get the template for the endpoint.
protected getTemplate ( ) : string
Résultat string

hasPaths() public méthode

Determine if the endpoint has any paths.
public hasPaths ( ) : boolean
Résultat boolean

toRouteDefinition() public méthode

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

Property Details

$classMiddleware public_oe property

All of the class level "inherited" middleware defined for the pathless endpoint.
public array $classMiddleware
Résultat array

$method public_oe property

The method that handles the route.
public string $method
Résultat string

$middleware public_oe property

All of the middleware defined for the pathless endpoint.
public array $middleware
Résultat array

$paths public_oe property

The route paths for the definition.
public array[Path] $paths
Résultat array[Path]

$reflection public_oe property

The ReflectionClass instance for the controller class.
public ReflectionClass $reflection
Résultat ReflectionClass

$uses public_oe property

The controller and method that handles the route.
public string $uses
Résultat string