Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
98 | 26 | public function jsonSerialize(): array |
|
99 | { |
||
100 | 26 | return Serialization::filterUnset([ |
|
101 | 26 | 'id' => $this->id, |
|
102 | 26 | 'context' => $this->context, |
|
103 | 26 | 'duration' => $this->duration, |
|
104 | 26 | 'name' => $this->name, |
|
105 | 26 | 'parent' => $this->parentId, |
|
106 | 26 | 'stacktrace' => Serialization::serialize(...$this->stackTraceFrameList), |
|
107 | 26 | 'start' => $this->startOffset, |
|
108 | 26 | 'type' => $this->type, |
|
109 | ]); |
||
110 | } |
||
111 | } |
||
112 |