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

Breadcrumb

  1. Drupal Core 11.1.x

AllCriteria.php

Namespace

OpenTelemetry\SDK\Metrics\View\SelectionCriteria

File

vendor/open-telemetry/sdk/Metrics/View/SelectionCriteria/AllCriteria.php

View source
<?php

declare (strict_types=1);
namespace OpenTelemetry\SDK\Metrics\View\SelectionCriteria;

use OpenTelemetry\SDK\Common\Instrumentation\InstrumentationScopeInterface;
use OpenTelemetry\SDK\Metrics\Instrument;
use OpenTelemetry\SDK\Metrics\View\SelectionCriteriaInterface;
final class AllCriteria implements SelectionCriteriaInterface {
    
    /**
     * @param iterable<SelectionCriteriaInterface> $criteria
     */
    public function __construct(iterable $criteria) {
    }
    public function accepts(Instrument $instrument, InstrumentationScopeInterface $instrumentationScope) : bool {
        foreach ($this->criteria as $criterion) {
            if (!$criterion->accepts($instrument, $instrumentationScope)) {
                return false;
            }
        }
        return true;
    }

}

Classes

Title Deprecated Summary
AllCriteria

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal