Class CallMap

Description

Retrieves values and references by searching the parameter lists until a match is found.

Located in /libraries/pear/simpletest/mock_objects.php (line 200)


	
			
Variable Summary
 mixed $_map
Method Summary
 CallMap CallMap ()
 void addReference (array $parameters, mixed &$reference)
 void addValue (array $parameters, mixed $value)
 object Object &findFirstMatch (array $parameters)
 boolean isMatch (array $parameters)
 array &_findFirstSlot (array $parameters)
Variables
mixed $_map (line 201)
Methods
Constructor CallMap (line 207)

Creates an empty call map.

  • access: public
CallMap CallMap ()
addReference (line 227)

Stashes a reference against a method call.

  • access: public
void addReference (array $parameters, mixed &$reference)
  • array $parameters: Array of arguments (including wildcards).
  • mixed $reference: Array reference placed in the map.
addValue (line 217)

Stashes a value against a method call.

  • access: public
void addValue (array $parameters, mixed $value)
  • array $parameters: Arguments including wildcards.
  • mixed $value: Value copied into the map.
findFirstMatch (line 243)

Searches the call list for a matching parameter set. Returned by reference.

  • return: held in the first matching slot, otherwise null.
  • access: public
object Object &findFirstMatch (array $parameters)
  • array $parameters: Parameters to search by without wildcards.
isMatch (line 259)

Searches the call list for a matching parameter set. True if successful.

  • return: True if a match is present.
  • access: public
boolean isMatch (array $parameters)
  • array $parameters: Parameters to search by without wildcards.
_findFirstSlot (line 270)

Searches the map for a matching item.

  • return: Reference to slot or null.
  • access: private
array &_findFirstSlot (array $parameters)
  • array $parameters: Parameters to search by without wildcards.

Documentation generated on Fri, 3 Dec 2004 12:26:59 +0000 by phpDocumentor 1.3.0RC3