Files
provider_imap/lib/Client/Command/Result/CommandStatusResult.php
2026-05-08 00:16:43 -04:00

28 lines
483 B
PHP

<?php
declare(strict_types=1);
namespace KTXM\ProviderImap\Client\Command\Result;
final class CommandStatusResult
{
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;
}
public function isOk(): bool
{
return $this->status === 'OK';
}
}