protected function getEndpointsWithResourceMethods(EndpointCollection $endpoints)
    {
        return Collection::make($endpoints)->filter(function ($endpoint) {
            return $endpoint instanceof MethodEndpoint &&
                    in_array($endpoint->method, $this->methods);
        })->all();
    }
protected function getEndpointsWithResourceMethods(EndpointCollection $endpoints)
    {
        return Collection::make($endpoints)->filter(function ($endpoint) {
            return $endpoint instanceof MethodEndpoint &&
                    in_array($endpoint->method, $this->methods);
        })->all();
    }
protected function getEndpointsWithResourceMethods ( EndpointCollection $ endpoints ) { return Collection :: make ( $ endpoints ) -> filter ( function ( $ endpoint ) { return $ endpoint instanceof MethodEndpoint && in_array ( $ endpoint -> method , $ this -> methods ) ; } ) -> all ( ) ; }
Get all of the resource method endpoints with pathless filters.

@param \Collective\Annotations\Routing\Annotations\EndpointCollection $endpoints

@return array
Get all of the resource method endpoints with pathless filters .