PHP Class Adamgoose\Routing\Annotations\Annotations\Resource

Inheritance: extends Annotation
Afficher le fichier Open project: adamgoose/laravel-annotations

Protected Properties

Свойство Type Description
$methods array All of the resource controller methods.

Méthodes publiques

Méthode Description
modifyCollection ( EndpointCollection $endpoints, ReflectionClass $class )

Méthodes protégées

Méthode Description
extractFromEndpoints ( EndpointCollection $endpoints, string $key ) : array Extract method items from endpoints for the given key.
getEndpointsWithResourceMethods ( EndpointCollection $endpoints ) : array Get all of the resource method endpoints with pathless filters.
getMiddleware ( EndpointCollection $endpoints ) : array Get all of the middleware defined on the resource method endpoints.

Method Details

extractFromEndpoints() protected méthode

Extract method items from endpoints for the given key.
protected extractFromEndpoints ( EndpointCollection $endpoints, string $key ) : array
$endpoints Adamgoose\Routing\Annotations\EndpointCollection
$key string
Résultat array

getEndpointsWithResourceMethods() protected méthode

Get all of the resource method endpoints with pathless filters.
protected getEndpointsWithResourceMethods ( EndpointCollection $endpoints ) : array
$endpoints Adamgoose\Routing\Annotations\EndpointCollection
Résultat array

getMiddleware() protected méthode

Get all of the middleware defined on the resource method endpoints.
protected getMiddleware ( EndpointCollection $endpoints ) : array
$endpoints Adamgoose\Routing\Annotations\EndpointCollection
Résultat array

modifyCollection() public méthode

public modifyCollection ( EndpointCollection $endpoints, ReflectionClass $class )
$endpoints Adamgoose\Routing\Annotations\EndpointCollection
$class ReflectionClass

Property Details

$methods protected_oe property

All of the resource controller methods.
protected array $methods
Résultat array