PHP Class Nelmio\Alice\Generator\Resolver\Value\Chainable\FakerFunctionCallValueResolver

Inheritance: implements Nelmio\Alice\Generator\Resolver\Value\ChainableValueResolverInterface, use trait Nelmio\Alice\IsAServiceTrait
Exibir arquivo Open project: nelmio/alice Class Usage Examples

Public Methods

Method Description
__construct ( Generator $fakerGenerator )
canResolve ( Nelmio\Alice\Definition\ValueInterface $value ) : boolean
resolve ( Nelmio\Alice\Definition\ValueInterface $value, Nelmio\Alice\FixtureInterface $fixture, ResolvedFixtureSet $fixtureSet, array $scope, GenerationContext $context ) : ResolvedValueWithFixtureSet

Private Methods

Method Description
getGenerator ( GeneratorFactory $factory, string $formatter )

Method Details

__construct() public method

public __construct ( Generator $fakerGenerator )
$fakerGenerator Faker\Generator

canResolve() public method

public canResolve ( Nelmio\Alice\Definition\ValueInterface $value ) : boolean
$value Nelmio\Alice\Definition\ValueInterface
return boolean

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