$criteria */ public function __construct(iterable $criteria) { $this->criteria = $criteria; } public function accepts(Instrument $instrument, InstrumentationScopeInterface $instrumentationScope): bool { foreach ($this->criteria as $criterion) { if (!$criterion->accepts($instrument, $instrumentationScope)) { return false; } } return true; } }