PHP Class Nelmio\Alice\Generator\Instantiator\ExistingInstanceInstantiator

Inheritance: implements Nelmio\Alice\Generator\InstantiatorInterface, implements Nelmio\Alice\Generator\ValueResolverAwareInterface, use trait Nelmio\Alice\IsAServiceTrait
ファイルを表示 Open project: nelmio/alice Class Usage Examples

Public Methods

Method Description
__construct ( Nelmio\Alice\Generator\InstantiatorInterface $decoratedInstantiator, Nelmio\Alice\Generator\ValueResolverInterface $resolver = null )
instantiate ( Nelmio\Alice\FixtureInterface $fixture, ResolvedFixtureSet $fixtureSet, GenerationContext $context ) : ResolvedFixtureSet
withValueResolver ( Nelmio\Alice\Generator\ValueResolverInterface $resolver ) : self

Method Details

__construct() public method

public __construct ( Nelmio\Alice\Generator\InstantiatorInterface $decoratedInstantiator, Nelmio\Alice\Generator\ValueResolverInterface $resolver = null )
$decoratedInstantiator Nelmio\Alice\Generator\InstantiatorInterface
$resolver Nelmio\Alice\Generator\ValueResolverInterface

instantiate() public method

public instantiate ( Nelmio\Alice\FixtureInterface $fixture, ResolvedFixtureSet $fixtureSet, GenerationContext $context ) : ResolvedFixtureSet
$fixture Nelmio\Alice\FixtureInterface
$fixtureSet Nelmio\Alice\Generator\ResolvedFixtureSet
$context Nelmio\Alice\Generator\GenerationContext
return Nelmio\Alice\Generator\ResolvedFixtureSet

withValueResolver() public method

public withValueResolver ( Nelmio\Alice\Generator\ValueResolverInterface $resolver ) : self
$resolver Nelmio\Alice\Generator\ValueResolverInterface
return self