private function AnnotationReader::collectParsingMetadata in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationReader.php \Doctrine\Common\Annotations\AnnotationReader::collectParsingMetadata()
Collects parsing metadata for a given class.
Parameters
\ReflectionClass $class:
2 calls to AnnotationReader::collectParsingMetadata()
- AnnotationReader::getClassImports in vendor/
doctrine/ annotations/ lib/ Doctrine/ Common/ Annotations/ AnnotationReader.php - Retrieves imports.
- AnnotationReader::getIgnoredAnnotationNames in vendor/
doctrine/ annotations/ lib/ Doctrine/ Common/ Annotations/ AnnotationReader.php - Returns the ignored annotations for the given class.
File
- vendor/
doctrine/ annotations/ lib/ Doctrine/ Common/ Annotations/ AnnotationReader.php, line 371
Class
- AnnotationReader
- A reader for docblock annotations.
Namespace
Doctrine\Common\AnnotationsCode
private function collectParsingMetadata(ReflectionClass $class) {
$ignoredAnnotationNames = self::$globalIgnoredNames;
$annotations = $this->preParser
->parse($class
->getDocComment(), 'class ' . $class->name);
foreach ($annotations as $annotation) {
if ($annotation instanceof IgnoreAnnotation) {
foreach ($annotation->names as $annot) {
$ignoredAnnotationNames[$annot] = true;
}
}
}
$name = $class
->getName();
$this->imports[$name] = array_merge(self::$globalImports, $this->phpParser
->parseClass($class), array(
'__NAMESPACE__' => $class
->getNamespaceName(),
));
$this->ignoredAnnotationNames[$name] = $ignoredAnnotationNames;
}