Class Swift_Events_CommandEvent

InheritanceSwift_Events_CommandEvent » Swift_Events_EventObject
ImplementsSwift_Events_Event

Generated when a command is sent over an SMTP connection.

Public Methods

Hide inherited methods

MethodDescriptionDefined 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

__construct() public method

Create a new CommandEvent for $source with $command.

public void __construct ( Swift_Transport $source, $command, $successCodes = [] )
$source Swift_Transport
$command string
$successCodes array
getCommand() public method

Get the command which was sent to the server.

public string getCommand ( )
getSuccessCodes() public method

Get the numeric response codes which indicate success for this command.

public integer[] getSuccessCodes ( )