class Messenger (View source)

The Messenger object allows for pushing error messages to the calling method in order to separate return values from error details.

Properties

private $error The last pushed error.

Methods

__construct()

The messenger constructor.

string
getError()

Return the stored error message.

setError(string $message)

Set the last error.

Details

__construct()

The messenger constructor.

string getError()

Return the stored error message.

Return Value

string the error message

setError(string $message)

Set the last error.

Parameters

string $message