Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
74 | 20 | public function jsonSerialize(): array |
|
75 | { |
||
76 | 20 | return Serialization::filterUnset([ |
|
77 | 20 | 'raw' => $this->raw, |
|
78 | 20 | 'protocol' => $this->protocol, |
|
79 | 20 | 'full' => $this->full, |
|
80 | 20 | 'hostname' => $this->hostname, |
|
81 | 20 | 'port' => $this->port, |
|
82 | 20 | 'pathname' => $this->path, |
|
83 | 20 | 'search' => $this->query, |
|
84 | 20 | 'hash' => $this->fragment, |
|
85 | ]); |
||
86 | } |
||
87 | } |
||
88 |