generated from Nodarx/template
33 lines
700 B
PHP
33 lines
700 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Gricob\IMAP;
|
|
|
|
class Mailbox
|
|
{
|
|
private const ATTRIBUTE_NOSELECT = '\Noselect';
|
|
|
|
public array $flags = [];
|
|
public int $exists = 0;
|
|
public int $recent = 0;
|
|
public ?int $unseen = null;
|
|
public ?int $uidValidity = null;
|
|
public ?int $uidNext = null;
|
|
public array $permanentFlags = [];
|
|
|
|
/**
|
|
* @param list<string> $nameAttributes
|
|
*/
|
|
public function __construct(
|
|
public array $nameAttributes,
|
|
public string $hierarchyDelimiter,
|
|
public string $name,
|
|
) {
|
|
}
|
|
|
|
public function isSelectable(): bool
|
|
{
|
|
return !in_array(self::ATTRIBUTE_NOSELECT, $this->nameAttributes);
|
|
}
|
|
} |