PHP Class SimpleReturn, simpletest

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

Méthodes publiques

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

Method Details

__construct() public méthode

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

act() public méthode

Returns the value stored earlier.
public act ( ) : mixed
Résultat mixed Whatever was stashed.