public function modifyCollection(EndpointCollection $endpoints, ReflectionClass $class)
{
$endpoints->push(new ResourceEndpoint(['reflection' => $class, 'name' => $this->value, 'names' => (array) $this->names, 'only' => (array) $this->only, 'except' => (array) $this->except, 'middleware' => $this->getMiddleware($endpoints)]));
}