AgentInterface
in
SMTP agent interface
Tags
Table of Contents
Methods
- executeCommand() : mixed
- Run a command against the buffer, expecting the given response codes.
- getBuffer() : BufferInterface
- Get the IoBuffer where read/writes are occurring.
Methods
executeCommand()
Run a command against the buffer, expecting the given response codes.
public
executeCommand(string $command[, array<string|int, mixed> $codes = [] ]) : mixed
If no response codes are given, the response will not be validated. If codes are given, an exception will be thrown on an invalid response.
Parameters
- $command : string
- $codes : array<string|int, mixed> = []
getBuffer()
Get the IoBuffer where read/writes are occurring.
public
getBuffer() : BufferInterface