| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 15 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 6 | 
| CRAP Score | 3.0261 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 21 | 6 | public static function create($type, $options = [], $contextualTags = [])  | 
            |
| 22 |     { | 
            ||
| 23 | 6 | $collector = Factory::create($type, $options);  | 
            |
| 24 | |||
| 25 |         switch ($type) { | 
            ||
| 26 | 6 | case 'dogstatsd':  | 
            |
| 27 | /** @var DogStatsD $collector */  | 
            ||
| 28 | 3 | return new DogStatsDMetricService($collector, $contextualTags);  | 
            |
| 29 | 3 | case 'statsd':  | 
            |
| 30 | /** @var StatsD $collector */  | 
            ||
| 31 | 3 | return new StatsDMetricService($collector);  | 
            |
| 32 | }  | 
            ||
| 33 | |||
| 34 |         throw new \Exception(sprintf('MetricService for %s is not implemented', $type)); | 
            ||
| 35 | }  | 
            ||
| 36 | }  | 
            ||
| 37 |