class Result (View source)

Methods

__construct(ImapCommand $command, array $responses = [])

Constructor.

command()

Get the executed command.

void
addResponse(Response $response)

Add a response to the result.

responses()

Get the recently received responses.

Details

__construct(ImapCommand $command, array $responses = [])

Constructor.

Parameters

ImapCommand $command
array $responses

ImapCommand command()

Get the executed command.

Return Value

ImapCommand

void addResponse(Response $response)

Add a response to the result.

Parameters

Response $response

Return Value

void

ResponseCollection responses()

Get the recently received responses.

Return Value

ResponseCollection