generated from Nodarx/template
refactor: use custom imap client
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
30
lib/Client/Command/CommandInterface.php
Normal file
30
lib/Client/Command/CommandInterface.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace KTXM\ProviderImap\Client\Command;
|
||||
|
||||
use KTXM\ProviderImap\Client\Protocol\RequestFrame;
|
||||
use KTXM\ProviderImap\Client\Protocol\ResponseStream;
|
||||
use KTXM\ProviderImap\Client\SessionContext;
|
||||
use KTXM\ProviderImap\Client\SessionState;
|
||||
|
||||
/**
|
||||
* @template TResult
|
||||
*/
|
||||
interface CommandInterface
|
||||
{
|
||||
public function name(): string;
|
||||
|
||||
/**
|
||||
* @return list<SessionState>
|
||||
*/
|
||||
public function allowedStates(): array;
|
||||
|
||||
public function encode(string $tag, SessionContext $context): RequestFrame;
|
||||
|
||||
/**
|
||||
* @return TResult
|
||||
*/
|
||||
public function handle(ResponseStream $responses, SessionContext $context): mixed;
|
||||
}
|
||||
Reference in New Issue
Block a user