Class SimpleReturn

Description

A type of SimpleMethodAction.

Stashes a value for returning later. Follows usual PHP5 semantics of objects being returned by reference.

Located in /mock_objects.php (line 496)


	
			
Method Summary
 SimpleReturn __construct (mixed $value)
 mixed act ()
Methods
Constructor __construct (line 505)

Stashes it for later.

SimpleReturn __construct (mixed $value)
  • mixed $value: You need to clone objects if you want copy semantics for these.
act (line 513)

Returns the value stored earlier.

  • return: Whatever was stashed.
mixed act ()

Documentation generated on Sun, 31 Oct 2010 16:31:50 -0500 by phpDocumentor 1.4.3