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

Inheritance: implements Nelmio\Alice\Generator\Resolver\Value\ChainableValueResolverInterface, implements Nelmio\Alice\Generator\ValueResolverAwareInterface, use trait Nelmio\Alice\IsAServiceTrait
ファイルを表示 Open project: nelmio/alice Class Usage Examples

Public Methods

Method Description
__construct ( Nelmio\Alice\Generator\ValueResolverInterface $resolver = null )
canResolve ( Nelmio\Alice\Definition\ValueInterface $value ) : boolean
resolve ( Nelmio\Alice\Definition\ValueInterface $value, Nelmio\Alice\FixtureInterface $fixture, ResolvedFixtureSet $fixtureSet, array $scope, GenerationContext $context ) : ResolvedValueWithFixtureSet
withValueResolver ( Nelmio\Alice\Generator\ValueResolverInterface $resolver ) : self

Private Methods

Method Description
findSuitableIds ( string $pattern, ResolvedFixtureSet $fixtureSet ) : array
getSuitableIds ( FixtureMatchReferenceValue $value, ResolvedFixtureSet $fixtureSet ) : array Gets all the fixture IDs suitable for the given value.
getSuitableIds ( FixtureMatchReferenceValue $value, ResolvedFixtureSet $fixtureSet, GenerationContext $context ) : array Gets all the fixture IDs suitable for the given value.

Method Details

__construct() public method

public __construct ( Nelmio\Alice\Generator\ValueResolverInterface $resolver = null )
$resolver Nelmio\Alice\Generator\ValueResolverInterface

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

withValueResolver() public method

public withValueResolver ( Nelmio\Alice\Generator\ValueResolverInterface $resolver ) : self
$resolver Nelmio\Alice\Generator\ValueResolverInterface
return self