1 | <?php |
||
9 | final class System implements JsonSerializable |
||
10 | { |
||
11 | /** |
||
12 | * @var string|null |
||
13 | */ |
||
14 | private $architecture; |
||
15 | |||
16 | /** |
||
17 | * @var string|null |
||
18 | */ |
||
19 | private $hostname; |
||
20 | |||
21 | /** |
||
22 | * @var string|null |
||
23 | */ |
||
24 | private $platform; |
||
25 | |||
26 | 1 | public function onArchitecture(string $architecture): self |
|
33 | |||
34 | 31 | public function atHost(string $hostname): self |
|
41 | |||
42 | 1 | public function onPlatform(string $platform): self |
|
49 | |||
50 | /** |
||
51 | * @return mixed[] |
||
52 | */ |
||
53 | 26 | public function jsonSerialize(): array |
|
61 | } |
||
62 |