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

57 lines
1.1 KiB
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\IMAP;
final class MessageStructureData {
/** @var bool */
private $hasAttachments;
/** @var string */
private $previewText;
/** @var bool */
private $isImipMessage;
private bool $isEncrypted;
private bool $mentionsMe;
public function __construct(bool $hasAttachments,
string $previewText,
bool $isImipMessage,
bool $isEncrypted,
bool $mentionsMe) {
$this->hasAttachments = $hasAttachments;
$this->previewText = $previewText;
$this->isImipMessage = $isImipMessage;
$this->isEncrypted = $isEncrypted;
$this->mentionsMe = $mentionsMe;
}
public function hasAttachments(): bool {
return $this->hasAttachments;
}
public function getPreviewText(): string {
return $this->previewText;
}
public function isImipMessage(): bool {
return $this->isImipMessage;
}
public function isEncrypted(): bool {
return $this->isEncrypted;
}
public function getMentionsMe(): bool {
return $this->mentionsMe;
}
}