generated from Nodarx/template
refactor: CommandStatusResult
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
@@ -4,7 +4,10 @@ declare(strict_types=1);
|
||||
|
||||
namespace KTXM\ProviderImap\Client\Result;
|
||||
|
||||
final class CommandStatusResult
|
||||
/**
|
||||
* Successful command output; unsuccessful completion is reported by exception.
|
||||
*/
|
||||
final class CommandCompletion
|
||||
{
|
||||
public function __construct(
|
||||
private readonly string $status,
|
||||
@@ -20,9 +23,4 @@ final class CommandStatusResult
|
||||
{
|
||||
return $this->text;
|
||||
}
|
||||
|
||||
public function isOk(): bool
|
||||
{
|
||||
return $this->status === 'OK';
|
||||
}
|
||||
}
|
||||
@@ -4,6 +4,9 @@ declare(strict_types=1);
|
||||
|
||||
namespace KTXM\ProviderImap\Client\Result;
|
||||
|
||||
/**
|
||||
* Successful command output; unsuccessful completion is reported by exception.
|
||||
*/
|
||||
final class MessageTransferResult
|
||||
{
|
||||
/**
|
||||
@@ -33,11 +36,6 @@ final class MessageTransferResult
|
||||
return $this->text;
|
||||
}
|
||||
|
||||
public function isOk(): bool
|
||||
{
|
||||
return $this->status === 'OK';
|
||||
}
|
||||
|
||||
/**
|
||||
* @return list<array{source:string, name:string, arguments:list<string>, text:string}>
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user