Conditions | 1 |
Paths | 1 |
Total Lines | 20 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
42 | public function __construct( |
||
43 | string $message, |
||
44 | float $value, |
||
45 | ?int $count = null, |
||
46 | ?float $min = null, |
||
47 | ?float $max = null, |
||
48 | ?float $stdDev = null, |
||
49 | ?iterable $context = [] |
||
50 | ) { |
||
51 | $this->message = $message; |
||
52 | $this->value = $value; |
||
53 | $this->count = $count; |
||
54 | $this->min = $min; |
||
55 | $this->max = $max; |
||
56 | $this->stdDev = $stdDev; |
||
57 | $this->label = Trackable::LABEL_METRIC; |
||
58 | $this->context = array_merge( |
||
59 | $context, |
||
|
|||
60 | ['label' => $this->label], |
||
61 | compact('value', 'count', 'min', 'max', 'stdDev') |
||
62 | ); |
||
115 |