PHP Class Swift_Events_CommandEvent, Halite

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

Méthodes publiques

Méthode 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 méthode

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 méthode

Get the command which was sent to the server.
public getCommand ( ) : string
Résultat string

getSuccessCodes() public méthode

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