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;
    }
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;
    }
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 ; }
Build the Endpoints for the given class.

@param \ReflectionClass                                          $class
@param \Collective\Annotations\Routing\Annotations\AnnotationSet $annotations

@return \Collective\Annotations\Routing\Annotations\EndpointCollection
Build the Endpoints for the given class .