Class Swift_Events_CommandEvent
Inheritance | Swift_Events_CommandEvent » Swift_Events_EventObject |
---|---|
Implements | Swift_Events_Event |
Generated when a command is sent over an SMTP connection.
Public Methods
Method | Description | Defined By |
---|---|---|
__construct() | Create a new CommandEvent for $source with $command. | Swift_Events_CommandEvent |
bubbleCancelled() | Returns true if this Event will not bubble any further up the stack. | Swift_Events_EventObject |
cancelBubble() | Prevent this Event from bubbling any further up the stack. | Swift_Events_EventObject |
getCommand() | Get the command which was sent to the server. | Swift_Events_CommandEvent |
getSource() | Get the source object of this event. | Swift_Events_EventObject |
getSuccessCodes() | Get the numeric response codes which indicate success for this command. | Swift_Events_CommandEvent |
Method Details
Create a new CommandEvent for $source with $command.
public void __construct ( Swift_Transport $source, $command, $successCodes = [] ) | ||
$source | Swift_Transport | |
$command | string | |
$successCodes | array |
Get the command which was sent to the server.
public string getCommand ( ) |
Get the numeric response codes which indicate success for this command.
public integer[] getSuccessCodes ( ) |