generated from Nodarx/template
36 lines
685 B
PHP
36 lines
685 B
PHP
<?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;
|
|
}
|
|
} |