function ParserChain::forClass
@psalm-param class-string $className
Overrides Parser::forClass
File
-
vendor/
phpunit/ phpunit/ src/ Metadata/ Parser/ ParserChain.php, line 36
Class
- ParserChain
- @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Namespace
PHPUnit\Metadata\ParserCode
public function forClass(string $className) : MetadataCollection {
assert(class_exists($className));
$metadata = $this->attributeReader
->forClass($className);
if (!$metadata->isEmpty()) {
return $metadata;
}
return $this->annotationReader
->forClass($className);
}