PHP Interface Swift_Transport_SmtpAgent, Halite

Author: Chris Corbyn
Show file Open project: HaliteChallenge/Halite Interface Usage Examples

Public Methods

Method Description
executeCommand ( string $command, int[] $codes = [], string[] &$failures = null ) Run a command against the buffer, expecting the given response codes.
getBuffer ( ) : Swift_Transport_IoBuffer Get the IoBuffer where read/writes are occurring.

Method Details

executeCommand() public method

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.
public executeCommand ( string $command, int[] $codes = [], string[] &$failures = null )
$command string
$codes int[]
$failures string[] An array of failures by-reference

getBuffer() public method

Get the IoBuffer where read/writes are occurring.
public getBuffer ( ) : Swift_Transport_IoBuffer
return Swift_Transport_IoBuffer