Adamgoose\Routing\Annotations\Scanner::getEndpointsInClass PHP Méthode

getEndpointsInClass() protected méthode

Build the Endpoints for the given class.
protected getEndpointsInClass ( ReflectionClass $class, AnnotationSet $annotations ) : EndpointCollection
$class ReflectionClass
$annotations AnnotationSet
Résultat EndpointCollection
    protected function getEndpointsInClass(ReflectionClass $class, AnnotationSet $annotations)
    {
        $endpoints = new EndpointCollection();
        foreach ($annotations->method as $method => $methodAnnotations) {
            $this->addEndpoint($endpoints, $class, $method, $methodAnnotations);
        }
        foreach ($annotations->class as $annotation) {
            $annotation->modifyCollection($endpoints, $class);
        }
        return $endpoints;
    }