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
+28
View File
@@ -0,0 +1,28 @@
<?php
declare(strict_types=1);
namespace KTXM\ProviderImap\Client\Result;
final class CapabilityResult
{
/**
* @param list<string> $capabilities
*/
public function __construct(
private readonly array $capabilities,
) {}
/**
* @return list<string>
*/
public function capabilities(): array
{
return $this->capabilities;
}
public function has(string $capability): bool
{
return in_array(strtoupper($capability), $this->capabilities, true);
}
}