generated from Nodarx/template
28 lines
483 B
PHP
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';
|
|
}
|
|
} |