protected function getEndpointsInClasses(SimpleAnnotationReader $reader) { $endpoints = new EndpointCollection(); foreach ($this->getClassesToScan() as $class) { $endpoints = $endpoints->merge($this->getEndpointsInClass($class, new AnnotationSet($class, $reader))); } return $endpoints; }