Location: PHPKode > projects > Spiral > ametaireau-spiral-272a2b1/framework/di/tests/fixtures/construction/MockArgumentConstructionStrategy.php
<?php
namespace spiral\framework\di\fixtures\construction;

use spiral\framework\di\construction\AbstractArgumentConstructionStrategy;
use spiral\framework\di\construction\ArgumentConstructionStrategy;
use spiral\framework\di\construction\Container;
use spiral\framework\di\definition\Schema;
use spiral\framework\di\definition\Service;

/**
 * Mock service construction Strategy
 *
 * @author  	Alexis Métaireau	29 sept. 2009
 * @copyright	Alexis Metaireau 	2009
 * @license		GNU/GPL V3. Please see the COPYING FILE.
 */

class MockArgumentConstructionStrategy extends AbstractArgumentConstructionStrategy implements ArgumentConstructionStrategy
{
	public $buildArgumentArguments = array();
	
	public function buildArgument(Container $container,$currentService)
	{
		$this->buildArgumentArguments = array($container, $currentService);
		return $this->getArgument();
	}
}
?>
Return current item: Spiral