refactor: CommandStatusResult

Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
2026-09-25 12:06:46 -04:00
parent 3ea76f34fb
commit 1ce2013c07
13 changed files with 163 additions and 76 deletions
+26
View File
@@ -0,0 +1,26 @@
<?php
declare(strict_types=1);
namespace KTXM\ProviderImap\Client\Result;
/**
* Successful command output; unsuccessful completion is reported by exception.
*/
final class CommandCompletion
{
public function __construct(
private readonly string $status,
private readonly string $text,
) {}
public function status(): string
{
return $this->status;
}
public function text(): string
{
return $this->text;
}
}