| Total Complexity | 4 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | final class DefaultTaggingMetricSource implements \IteratorAggregate, MetricSourceInterface |
||
| 9 | { |
||
| 10 | /** @var MetricSourceInterface */ |
||
| 11 | private $source; |
||
| 12 | /** @var string[] */ |
||
| 13 | private $tags; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * ExtraTagsMetricSource constructor. |
||
| 17 | * |
||
| 18 | * @param MetricSourceInterface $source |
||
| 19 | * @param string[] $tags |
||
| 20 | */ |
||
| 21 | 3 | public function __construct(MetricSourceInterface $source, array $tags = []) |
|
| 25 | 3 | } |
|
| 26 | |||
| 27 | /** {@inheritdoc} */ |
||
| 28 | 3 | public function getIterator(): \Traversable |
|
| 29 | { |
||
| 30 | 3 | return $this->getMetrics(); |
|
| 31 | } |
||
| 32 | |||
| 33 | /** {@inheritdoc} */ |
||
| 34 | 3 | public function getMetrics(): \Traversable |
|
| 38 | } |
||
| 39 | 3 | } |
|
| 41 |