Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ConfiguratorClosure.php

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\InstrumentationScope
View 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
RSS feed
Powered by Drupal