refactor: use custom imap client

Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
2026-05-08 00:16:43 -04:00
parent a728aeb11c
commit a8764747fd
179 changed files with 6782 additions and 5907 deletions

View File

@@ -0,0 +1,36 @@
<?php
declare(strict_types=1);
namespace KTXM\ProviderImap\Client\Command\Result;
use KTXM\ProviderImap\Client\IdentifierMode;
final class SortResult
{
/**
* @param list<int> $matches
*/
public function __construct(
private readonly array $matches,
private readonly IdentifierMode $identifierMode,
) {}
/**
* @return list<int>
*/
public function matches(): array
{
return $this->matches;
}
public function identifierMode(): IdentifierMode
{
return $this->identifierMode;
}
public function isUidSort(): bool
{
return $this->identifierMode === IdentifierMode::Uid;
}
}