ProfileNode::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace tomzx\Profiler;
4
5
class ProfileNode
6
{
7
    /**
8
     * @var int
9
     */
10
    public $id;
11
    /**
12
     * @var \tomzx\Profiler\Runtime\CallFrame
13
     */
14
    public $callFrame;
15
    /**
16
     * @var int
17
     */
18
    public $hitCount = 0;
19
    /**
20
     * @var array<int>
21
     */
22
    public $children = [];
23
    /**
24
     * @var string
25
     */
26
    public $deoptReason;
27
    /**
28
     * @var array<\tomzx\Profiler\ProfileTickInfo>
29
     */
30
    public $positionTicks = [];
31
    /**
32
     * @var int
33
     */
34
    public static $currentId = 0;
35
36
    public function __construct()
37
    {
38
        $this->id = ++self::$currentId;
39
    }
40
}
41