Adamgoose\Routing\Annotations\Annotations\Resource::modifyCollection PHP Метод

modifyCollection() публичный метод

public modifyCollection ( EndpointCollection $endpoints, ReflectionClass $class )
$endpoints Adamgoose\Routing\Annotations\EndpointCollection
$class ReflectionClass
    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)]));
    }