-
Notifications
You must be signed in to change notification settings - Fork 65
Expand file tree
/
Copy pathDummy.php
More file actions
62 lines (51 loc) · 1.04 KB
/
Dummy.php
File metadata and controls
62 lines (51 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-only
*/
namespace OCA\ServerInfo\OperatingSystems;
use OCA\ServerInfo\Resources\CPU;
use OCA\ServerInfo\Resources\Memory;
class Dummy implements IOperatingSystem {
#[\Override]
public function supported(): bool {
return false;
}
#[\Override]
public function getCPU(): CPU {
return new CPU('Unknown Processor', 1);
}
#[\Override]
public function getMemory(): Memory {
return new Memory();
}
#[\Override]
public function getTime(): string {
return '';
}
#[\Override]
public function getUptime(): int {
return -1;
}
#[\Override]
public function getNetworkInfo(): array {
return [
'hostname' => \gethostname(),
'dns' => '',
'gateway' => '',
];
}
#[\Override]
public function getNetworkInterfaces(): array {
return [];
}
#[\Override]
public function getDiskInfo(): array {
return [];
}
#[\Override]
public function getThermalZones(): array {
return [];
}
}