38 lines
717 B
PHP
38 lines
717 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* SPDX-FileCopyrightText: Sebastian Krupinski <krupinski01@gmail.com>
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
namespace KTXF\Mail\Collection;
|
|
|
|
use JsonSerializable;
|
|
|
|
/**
|
|
* Mail Collection Roles
|
|
*
|
|
* Standard mailbox/folder roles for mail collections.
|
|
*
|
|
* @since 2025.05.01
|
|
*/
|
|
enum CollectionRoles: string implements JsonSerializable {
|
|
|
|
case Inbox = 'inbox';
|
|
case Drafts = 'drafts';
|
|
case Sent = 'sent';
|
|
case Trash = 'trash';
|
|
case Junk = 'junk';
|
|
case Archive = 'archive';
|
|
case Outbox = 'outbox';
|
|
case Queue = 'queue';
|
|
case Custom = 'custom';
|
|
|
|
public function jsonSerialize(): string {
|
|
return $this->value;
|
|
}
|
|
|
|
}
|