PHP Class Nelmio\Alice\Generator\Instantiator\InstantiatorRegistry

Inheritance: implements Nelmio\Alice\Generator\InstantiatorInterface, implements Nelmio\Alice\Generator\ValueResolverAwareInterface, use trait Nelmio\Alice\IsAServiceTrait
Show file Open project: nelmio/alice Class Usage Examples

Public Methods

Method Description
__construct ( array $instantiators )
instantiate ( Nelmio\Alice\FixtureInterface $fixture, ResolvedFixtureSet $fixtureSet, GenerationContext $context ) : ResolvedFixtureSet
withValueResolver ( Nelmio\Alice\Generator\ValueResolverInterface $resolver ) : self

Method Details

__construct() public method

public __construct ( array $instantiators )
$instantiators array

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