src/Core/Doctrine/Annotation/Scanner/Scanner.php
private function parseResult(SplFileInfo $file)
    {
        $result = [];
        $classInspector = (new FileInspector($file->getPathname()))->getClassInspector($this->reader);
        foreach ($this->annotations as $annotation) {
            if ($classInspector->containsClassAnnotation($annotation) || $classInspector->containsMethodAnnotation($annotation) || $classInspector->containsPropertyAnnotation($annotation)) {
                $result[] = new ClassFileInfo($file, $classInspector);
                break;
            }
        }

        return $result;
    }
private function parseResult(SplFileInfo $file)
    {
        $result = [];
        $classInspector = (new FileInspector($file->getPathname()))->getClassInspector($this->reader);
        foreach ($this->annotations as $annotation) {
            if ($classInspector->containsClassAnnotation($annotation) || $classInspector->containsMethodAnnotation($annotation) || $classInspector->containsPropertyAnnotation($annotation)) {
                $result[] = new ClassFileInfo($file, $classInspector);
                break;
            }
        }

        return $result;
    }
@param SplFileInfo $file

@return array