%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/varak.net/nextcloud.varak.net/apps_old/apps/serverinfo/lib/OperatingSystems/
Upload File :
Create Path :
Current File : //www/varak.net/nextcloud.varak.net/apps_old/apps/serverinfo/lib/OperatingSystems/Dummy.php

<?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\Memory;

class Dummy implements IOperatingSystem {
	public function supported(): bool {
		return false;
	}

	public function getMemory(): Memory {
		return new Memory();
	}

	public function getCpuName(): string {
		return 'Unknown Processor';
	}

	public function getTime(): string {
		return '';
	}

	public function getUptime(): int {
		return -1;
	}

	public function getNetworkInfo(): array {
		return [
			'hostname' => \gethostname(),
			'dns' => '',
			'gateway' => '',
		];
	}

	public function getNetworkInterfaces(): array {
		return [];
	}

	public function getDiskInfo(): array {
		return [];
	}

	public function getThermalZones(): array {
		return [];
	}
}

Zerion Mini Shell 1.0