Adamgoose\Routing\Annotations\Annotations\Resource::getEndpointsWithResourceMethods PHP Method

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
    protected function getEndpointsWithResourceMethods(EndpointCollection $endpoints)
    {
        return Collection::make($endpoints)->filter(function ($endpoint) {
            return $endpoint instanceof MethodEndpoint && in_array($endpoint->method, $this->methods);
        })->all();
    }