class ConfiguratorClosure
@internal
Hierarchy
- class \OpenTelemetry\SDK\Common\InstrumentationScope\ConfiguratorClosure
Expanded class hierarchy of ConfiguratorClosure
File
-
vendor/
open-telemetry/ sdk/ Common/ InstrumentationScope/ ConfiguratorClosure.php, line 13
Namespace
OpenTelemetry\SDK\Common\InstrumentationScopeView source
final class ConfiguratorClosure {
public function __construct(Closure $closure, ?string $name, ?string $version, ?string $schemaUrl) {
}
/**
* @psalm-suppress ArgumentTypeCoercion
*/
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());
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
ConfiguratorClosure::matches | public | function | @psalm-suppress ArgumentTypeCoercion |
ConfiguratorClosure::__construct | public | function |