SItem::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 3
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * Summary item
4
 * User: moyo
5
 * Date: 2018/5/17
6
 * Time: 11:21 PM
7
 */
8
9
namespace Carno\Monitor\Metrics;
10
11
final class SItem
12
{
13
    /**
14
     * value
15
     * @var float
16
     */
17
    public $v = 0;
18
19
    /**
20
     * lower delta
21
     * @var int
22
     */
23
    public $g = 1;
24
25
    /**
26
     * delta
27
     * @var int
28
     */
29
    public $d = 0;
30
31
    /**
32
     * Item constructor.
33
     * @param float $v
34
     * @param int $g
35
     * @param int $d
36
     */
37
    public function __construct(float $v, int $g, int $d)
38
    {
39
        $this->v = $v;
40
        $this->g = $g;
41
        $this->d = $d;
42
    }
43
}
44