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

41 lines
723 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2019 F7cloud GmbH and F7cloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCA\Mail\IMAP;
use JsonSerializable;
use ReturnTypeWillChange;
final class MailboxStats implements JsonSerializable {
private int $total;
private int $unread;
public function __construct(int $total, int $unread) {
$this->total = $total;
$this->unread = $unread;
}
public function getTotal(): int {
return $this->total;
}
public function getUnread(): int {
return $this->unread;
}
#[\Override]
#[ReturnTypeWillChange]
public function jsonSerialize() {
return [
'total' => $this->total,
'unread' => $this->unread,
];
}
}