| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 51 | 3 | public function addMetricsProvider(ProviderInterface $provider, array $collectors) |
|
| 52 | { |
||
| 53 | 3 | $collectorsCollection = $this->factory->create(); |
|
| 54 | 3 | foreach ($collectors as $collector) { |
|
| 55 | 3 | $collectorsCollection->addCollector($collector); |
|
| 56 | } |
||
| 57 | |||
| 58 | 3 | $key = spl_object_hash($provider); |
|
| 59 | 3 | $this->providers[$key] = $provider; |
|
| 60 | 3 | $this->collectorCollections[$key] = $collectorsCollection; |
|
| 61 | 3 | } |
|
| 62 | } |
||
| 63 |