PHP Class Nelmio\Alice\Generator\Instantiator\InstantiatorResolver

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

Public Methods

Method Description
__construct ( Nelmio\Alice\Generator\InstantiatorInterface $instantiator, Nelmio\Alice\Generator\ValueResolverInterface $valueResolver = null )
instantiate ( Nelmio\Alice\FixtureInterface $fixture, ResolvedFixtureSet $fixtureSet, GenerationContext $context ) : ResolvedFixtureSet Resolves the fixture constructor arguments before instantiating it.
withValueResolver ( Nelmio\Alice\Generator\ValueResolverInterface $resolver ) : self

Private Methods

Method Description
resolveArguments ( array $arguments, Nelmio\Alice\Generator\ValueResolverInterface $resolver, Nelmio\Alice\FixtureInterface $fixture, ResolvedFixtureSet $fixtureSet, GenerationContext $context ) : array
resolveFixtureConstructor ( Nelmio\Alice\FixtureInterface $fixture, ResolvedFixtureSet $set, GenerationContext $context ) : array

Method Details

__construct() public method

public __construct ( Nelmio\Alice\Generator\InstantiatorInterface $instantiator, Nelmio\Alice\Generator\ValueResolverInterface $valueResolver = null )
$instantiator Nelmio\Alice\Generator\InstantiatorInterface
$valueResolver 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