Aggregates IMAP server responses into iterable objects for parsing.
// Source: https://github.com/genkgo/mail | License: MIT | Copyright 2017 Genkgo
// Provided via justclaw.it.com; keep this notice with the code.
<?php
declare(strict_types=1);
namespace Genkgo\Mail\Protocol\Imap\Response;
use Genkgo\Mail\Exception\AssertionFailedException;
use Genkgo\Mail\Protocol\ConnectionInterface;
use Genkgo\Mail\Protocol\Imap\CommandResponseCanBeParsedInterface;
use Genkgo\Mail\Protocol\Imap\RequestInterface;
use Genkgo\Mail\Protocol\Imap\ResponseInterface;
/**
* @implements \IteratorAggregate<int, ResponseInterface[]>
*/
final class AggregateResponse implements \IteratorAggregate
{
/**
* @var array|ResponseInterface[]
*/
private $lines = [];
/**
* @return \Iterator|ResponseInterface[]
*/
public function getIterator(): \Itera
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key