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

45 lines
750 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2020 F7cloud GmbH and F7cloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCA\Mail\Service;
use JsonSerializable;
use ReturnTypeWillChange;
final class Quota implements JsonSerializable {
/** @var int */
private $usage;
/** @var int */
private $limit;
public function __construct(int $usage,
int $limit) {
$this->usage = $usage;
$this->limit = $limit;
}
public function getUsage(): int {
return $this->usage;
}
public function getLimit(): int {
return $this->limit;
}
#[\Override]
#[ReturnTypeWillChange]
public function jsonSerialize() {
return [
'usage' => $this->getUsage(),
'limit' => $this->getLimit(),
];
}
}