PHP Class Nelmio\Alice\Generator\Resolver\Value\ValueResolverRegistry

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

Public Methods

Method Description
__construct ( array $resolvers, Nelmio\Alice\Generator\ObjectGeneratorInterface $generator = null )
resolve ( Nelmio\Alice\Definition\ValueInterface $value, Nelmio\Alice\FixtureInterface $fixture, ResolvedFixtureSet $fixtureSet, array $scope, GenerationContext $context ) : ResolvedValueWithFixtureSet
withObjectGenerator ( Nelmio\Alice\Generator\ObjectGeneratorInterface $generator )

Method Details

__construct() public method

public __construct ( array $resolvers, Nelmio\Alice\Generator\ObjectGeneratorInterface $generator = null )
$resolvers array
$generator Nelmio\Alice\Generator\ObjectGeneratorInterface

resolve() public method

public resolve ( Nelmio\Alice\Definition\ValueInterface $value, Nelmio\Alice\FixtureInterface $fixture, ResolvedFixtureSet $fixtureSet, array $scope, GenerationContext $context ) : ResolvedValueWithFixtureSet
$value Nelmio\Alice\Definition\ValueInterface
$fixture Nelmio\Alice\FixtureInterface
$fixtureSet Nelmio\Alice\Generator\ResolvedFixtureSet
$scope array
$context Nelmio\Alice\Generator\GenerationContext
return Nelmio\Alice\Generator\ResolvedValueWithFixtureSet

withObjectGenerator() public method

public withObjectGenerator ( Nelmio\Alice\Generator\ObjectGeneratorInterface $generator )
$generator Nelmio\Alice\Generator\ObjectGeneratorInterface