PHP Class SimpleReturn, simpletest

Stashes a value for returning later. Follows usual PHP5 semantics of objects being returned by reference.
Datei anzeigen Open project: simpletest/simpletest

Public Methods

Method Description
__construct ( mixed $value ) Stashes it for later.
act ( ) : mixed Returns the value stored earlier.

Method Details

__construct() public method

Stashes it for later.
public __construct ( mixed $value )
$value mixed You need to clone objects if you want copy semantics for these.

act() public method

Returns the value stored earlier.
public act ( ) : mixed
return mixed Whatever was stashed.