class ImapCommand implements Stringable (View source)

Properties

protected string[] $compiled

The compiled command lines.

Methods

__construct(string $tag, string $command, array $tokens = [])

Constructor.

string
tag()

Get the IMAP tag.

string
command()

Get the IMAP command.

array
tokens()

Get the IMAP tokens.

array
compile()

Compile the command into lines for transmission.

redacted()

Get a redacted version of the command for safe exposure.

string
__toString()

Get the command as a string.

Details

__construct(string $tag, string $command, array $tokens = [])

Constructor.

Parameters

string $tag
string $command
array $tokens

string tag()

Get the IMAP tag.

Return Value

string

string command()

Get the IMAP command.

Return Value

string

array tokens()

Get the IMAP tokens.

Return Value

array

array compile()

Compile the command into lines for transmission.

Return Value

array

ImapCommand redacted()

Get a redacted version of the command for safe exposure.

Return Value

ImapCommand

string __toString()

Get the command as a string.

Return Value

string