ProfileNode   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 36
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
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