refactor: re-organize files

Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
2026-09-25 11:32:25 -04:00
parent 3fdb7b7a2e
commit 9a86292bcf
47 changed files with 244 additions and 228 deletions
+36
View File
@@ -0,0 +1,36 @@
<?php
declare(strict_types=1);
namespace KTXM\ProviderImap\Client\Result;
use KTXM\ProviderImap\Client\Protocol\IdentifierMode;
final class SearchResult
{
/**
* @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 isUidSearch(): bool
{
return $this->identifierMode === IdentifierMode::Uid;
}
}