PHP Class Adamgoose\Routing\Annotations\Annotations\Resource

Inheritance: extends Annotation
Mostra file Open project: adamgoose/laravel-annotations

Protected Properties

Property Type Description
$methods array All of the resource controller methods.

Public Methods

Method Description
modifyCollection ( EndpointCollection $endpoints, ReflectionClass $class )

Protected Methods

Method 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 method

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

getEndpointsWithResourceMethods() protected method

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

getMiddleware() protected method

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

modifyCollection() public method

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
return array