f7cloud_client/apps/serverinfo/lib/Resources/ThermalZone.php
root 8b6a0139db f7cloud_client
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-17 22:59:26 +00:00

43 lines
718 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2023 F7cloud GmbH and F7cloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCA\ServerInfo\Resources;
/**
* @psalm-api
*/
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;
}
#[\Override]
public function jsonSerialize(): array {
return [
'zone' => $this->zone,
'type' => $this->type,
'temp' => $this->temp,
];
}
}