Interface Xyster_Container_Parameter

Description

This class provides control over the arguments passed to a method

  • copyright: Copyright (c) 2007-2008 Irrational Logic (http://irrationallogic.net)
  • license: New BSD License

Located in /Container/Parameter.php (line 24)


	
			
Method Summary
void accept (Xyster_Container_Visitor $visitor)
boolean isResolvable (Xyster_Container_Interface $container, [Xyster_Container_Adapter $adapter = null],  $expectedType, Xyster_Container_NameBinding $expectedNameBinding, boolean $useNames)
mixed resolveInstance (Xyster_Container_Interface $container, [Xyster_Container_Adapter $adapter = null],  $expectedType, Xyster_Container_NameBinding $expectedNameBinding, boolean $useNames)
void verify (Xyster_Container_Interface $container, [Xyster_Container_Adapter $adapter = null],  $expectedType, Xyster_Container_NameBinding $expectedNameBinding, boolean $useNames)
Methods
accept (line 34)

Accepts a visitor for this Parameter

The method is normally called by visiting a component adapter, that cascades the visitor also down to all its Parameters.

void accept (Xyster_Container_Visitor $visitor)
isResolvable (line 46)

Check if the Parameter can statisfy the expected type using the container.

  • return:
    1. true
    if the component parameter can be resolved.
boolean isResolvable (Xyster_Container_Interface $container, [Xyster_Container_Adapter $adapter = null],  $expectedType, Xyster_Container_NameBinding $expectedNameBinding, boolean $useNames)
resolveInstance (line 59)

Retrieve the object from the Parameter that statisfies the expected type.

  • return: the instance or
    1. null
    if no suitable instance can be found.
  • throws: Xyster_Container_Exception if a referenced component could not be instantiated.
mixed resolveInstance (Xyster_Container_Interface $container, [Xyster_Container_Adapter $adapter = null],  $expectedType, Xyster_Container_NameBinding $expectedNameBinding, boolean $useNames)
verify (line 71)

Verify that the Parameter can statisfied the expected type using the container

  • throws: Xyster_Container_Exception if parameter and its dependencies cannot be resolved
void verify (Xyster_Container_Interface $container, [Xyster_Container_Adapter $adapter = null],  $expectedType, Xyster_Container_NameBinding $expectedNameBinding, boolean $useNames)

Documentation generated on Mon, 19 May 2008 17:08:30 -0400 by phpDocumentor 1.4.2