generated from Nodarx/template
feat: initial version
Signed-off-by: Sebastian Krupinski <root@LAPTOP-7DVOR6NC>
This commit was merged in pull request #1.
This commit is contained in:
26
lib/Client/Transport/Connection.php
Normal file
26
lib/Client/Transport/Connection.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Gricob\IMAP\Transport;
|
||||
|
||||
use Exception;
|
||||
|
||||
interface Connection
|
||||
{
|
||||
public function isOpen(): bool;
|
||||
|
||||
public function open(): void;
|
||||
|
||||
public function close(): void;
|
||||
|
||||
/**
|
||||
* @throws Exception
|
||||
*/
|
||||
public function send(string $data): void;
|
||||
|
||||
/**
|
||||
* @throws Exception
|
||||
*/
|
||||
public function receive(): ResponseStream;
|
||||
}
|
||||
Reference in New Issue
Block a user