PHP Class Swift_Events_CommandEvent, Halite

Author: Chris Corbyn ([email protected])
Inheritance: extends Swift_Events
Show file Open project: HaliteChallenge/Halite Class Usage Examples

Public Methods

Method Description
__construct ( Swift_Transport $source, string $command, array $successCodes = [] ) Create a new CommandEvent for $source with $command.
getCommand ( ) : string Get the command which was sent to the server.
getSuccessCodes ( ) : integer[] Get the numeric response codes which indicate success for this command.

Method Details

__construct() public method

Create a new CommandEvent for $source with $command.
public __construct ( Swift_Transport $source, string $command, array $successCodes = [] )
$source Swift_Transport
$command string
$successCodes array

getCommand() public method

Get the command which was sent to the server.
public getCommand ( ) : string
return string

getSuccessCodes() public method

Get the numeric response codes which indicate success for this command.
public getSuccessCodes ( ) : integer[]
return integer[]