%PDF- %PDF-
Direktori : /www/varak.net/nextcloud.varak.net/apps_old/apps/serverinfo/lib/Resources/ |
Current File : //www/varak.net/nextcloud.varak.net/apps_old/apps/serverinfo/lib/Resources/ThermalZone.php |
<?php declare(strict_types=1); /** * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors * SPDX-License-Identifier: AGPL-3.0-or-later */ namespace OCA\ServerInfo\Resources; class ThermalZone implements \JsonSerializable { public function __construct( private string $zone, private string $type, private float $temp) { } public function getZone(): string { return $this->zone; } public function getType(): string { return $this->type; } public function getTemp(): float { return $this->temp; } public function jsonSerialize(): array { return [ 'zone' => $this->zone, 'type' => $this->type, 'temp' => $this->temp, ]; } }