PHP Class Collective\Annotations\Routing\Annotations\Annotations\Resource

Inheritance: extends Annotation
Show file Open project: laravelcollective/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 Collective\Annotations\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 Collective\Annotations\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 Collective\Annotations\Routing\Annotations\EndpointCollection
return array

modifyCollection() public method

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

Property Details

$methods protected property

All of the resource controller methods.
protected array $methods
return array