function ConfiguratorClosure::matches
@psalm-suppress ArgumentTypeCoercion
File
-
vendor/
open-telemetry/ sdk/ Common/ InstrumentationScope/ ConfiguratorClosure.php, line 27
Class
- ConfiguratorClosure
- @internal
Namespace
OpenTelemetry\SDK\Common\InstrumentationScopeCode
public function matches(InstrumentationScopeInterface $instrumentationScope) : bool {
return ($this->name === null || preg_match($this->name, $instrumentationScope->getName())) && ($this->version === null || $this->version === $instrumentationScope->getVersion()) && ($this->schemaUrl === null || $this->schemaUrl === $instrumentationScope->getSchemaUrl());
}