Business Exception class

package sso\lib

 Methods

Add a data

addData(mixed $data, string $key = NULL

Parameters

$data

mixed

extra data to add

$key

string

key to use for bind the data (optional)

Retrieve all data or specific

getData(string $key = NULL) : mixed | array<mixed,mixed>

Parameters

$key

string

a key for retrieve specific data, NULL for all data

Returns

mixedarray<mixed,mixed>return all data if $key is NULL, the data bind to $key otherwise

 Properties

 

extra data

$data : array<mixed,mixed>

Default

array()