function CachingParser::forClassAndMethod
@psalm-param class-string $className @psalm-param non-empty-string $methodName
Overrides Parser::forClassAndMethod
File
-
vendor/
phpunit/ phpunit/ src/ Metadata/ Parser/ CachingParser.php, line 74
Class
- CachingParser
- @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Namespace
PHPUnit\Metadata\ParserCode
public function forClassAndMethod(string $className, string $methodName) : MetadataCollection {
$key = $className . '::' . $methodName;
if (isset($this->classAndMethodCache[$key])) {
return $this->classAndMethodCache[$key];
}
$this->classAndMethodCache[$key] = $this->forClass($className)
->mergeWith($this->forMethod($className, $methodName));
return $this->classAndMethodCache[$key];
}