PHP Class Nelmio\Alice\Generator\Instantiator\ExistingInstanceInstantiator

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

Méthodes publiques

Méthode 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 méthode

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 méthode

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
Résultat Nelmio\Alice\Generator\ResolvedFixtureSet

withValueResolver() public méthode

public withValueResolver ( Nelmio\Alice\Generator\ValueResolverInterface $resolver ) : self
$resolver Nelmio\Alice\Generator\ValueResolverInterface
Résultat self