PHP Class Swift_Events_ResponseEvent, 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 $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 méthode

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

Get the response which was received from the server.
public getResponse ( ) : string
Résultat string

isValid() public méthode

Get the success status of this Event.
public isValid ( ) : boolean
Résultat boolean