generated from Nodarx/template
refactor: use custom imap client
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
22
lib/Client/Protocol/RequestFrame.php
Normal file
22
lib/Client/Protocol/RequestFrame.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace KTXM\ProviderImap\Client\Protocol;
|
||||
|
||||
final class RequestFrame
|
||||
{
|
||||
public function __construct(
|
||||
private readonly string $commandLine,
|
||||
) {}
|
||||
|
||||
public function commandLine(): string
|
||||
{
|
||||
return $this->commandLine;
|
||||
}
|
||||
|
||||
public function toWire(string $tag): string
|
||||
{
|
||||
return $tag . ' ' . $this->commandLine . "\r\n";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user