We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70a19c3 commit d90cefeCopy full SHA for d90cefe
src/DataObjects/Server.php
@@ -14,6 +14,7 @@ final class Server
14
* @param null|string $protocol The HTTP protocol used
15
* @param null|OS $os The OS object
16
* @param null|string $encoding
17
+ * @param null|string $hostname
18
*/
19
public function __construct(
20
public null|string $ip,
@@ -23,6 +24,7 @@ public function __construct(
23
24
public null|string $protocol,
25
public null|OS $os,
26
public null|string $encoding,
27
+ public null|string $hostname,
28
) {
29
}
30
@@ -38,7 +40,8 @@ public function __construct(
38
40
* release: null|string,
39
41
* architecture: null|string
42
* }|null,
- * encoding: null|string
43
+ * encoding: null|string,
44
+ * hostname: null|string
45
* }
46
47
public function __toArray(): array
@@ -51,6 +54,7 @@ public function __toArray(): array
51
54
'protocol' => $this->protocol,
52
55
'os' => $this->os?->__toArray(),
53
56
'encoding' => $this->encoding,
57
+ 'hostname' => $this->hostname,
58
];
59
60
0 commit comments