generated from Nodarx/template
24 lines
481 B
PHP
24 lines
481 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace KTXM\ProviderImap\Client;
|
|
|
|
use KTXM\ProviderImap\Client\Command\CommandInterface;
|
|
|
|
interface ClientInterface
|
|
{
|
|
public function connect(ConnectionConfig $config): void;
|
|
|
|
/**
|
|
* @return list<string>
|
|
*/
|
|
public function capabilities(): array;
|
|
|
|
/**
|
|
* @template TResult
|
|
* @param CommandInterface<TResult> $command
|
|
* @return TResult
|
|
*/
|
|
public function perform(CommandInterface $command): mixed;
|
|
} |