Conditions | 2 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | 6 | public function __construct( |
|
25 | string $metricName, |
||
26 | string $outputName = '', |
||
27 | string $type = 'long', |
||
28 | int $maxStringBytes = null |
||
29 | ) { |
||
30 | 6 | $type = DataType::validate($type); |
|
31 | |||
32 | 5 | $this->type = $type; |
|
33 | 5 | $this->metricName = $metricName; |
|
34 | 5 | $this->outputName = $outputName ?: $metricName; |
|
35 | 5 | $this->maxStringBytes = $maxStringBytes; |
|
36 | } |
||
67 | } |