Files
provider_imap/lib/Client/Result/SortResult.php
T
Sebastian 9a86292bcf refactor: re-organize files
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
2026-09-25 11:32:25 -04:00

36 lines
686 B
PHP

<?php
declare(strict_types=1);
namespace KTXM\ProviderImap\Client\Result;
use KTXM\ProviderImap\Client\Protocol\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;
}
}