PHP Class Swift_Events_ResponseEvent, 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 $response, boolean $valid = false ) Create a new ResponseEvent for $source and $response.
getResponse ( ) : string Get the response which was received from the server.
isValid ( ) : boolean Get the success status of this Event.

Method Details

__construct() public method

Create a new ResponseEvent for $source and $response.
public __construct ( Swift_Transport $source, string $response, boolean $valid = false )
$source Swift_Transport
$response string
$valid boolean

getResponse() public method

Get the response which was received from the server.
public getResponse ( ) : string
return string

isValid() public method

Get the success status of this Event.
public isValid ( ) : boolean
return boolean