PHP Class Nelmio\Alice\Generator\Resolver\Parameter\Chainable\RecursiveParameterResolver

Inheritance: implements Nelmio\Alice\Generator\Resolver\ChainableParameterResolverInterface, implements Nelmio\Alice\Generator\Resolver\ParameterResolverAwareInterface, 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\Resolver\ChainableParameterResolverInterface $resolver, integer $limit = 5 )
canResolve ( Parameter $parameter ) : boolean
resolve ( Parameter $parameter, ParameterBag $unresolvedParameters, ParameterBag $resolvedParameters, ResolvingContext $context = null, ParameterBag $previousResult = null, integer $counter = 1 ) : ParameterBag Resolves a parameter two times and if a different result is obtained will resolve the parameter again until two successive resolution give the same result.
withResolver ( Nelmio\Alice\Generator\Resolver\ParameterResolverInterface $resolver )

Private Methods

Méthode Description
incrementCounter ( integer $counter, integer $limit, string $parameterKey ) : integer
mergeResults ( ParameterBag $previous, ParameterBag $new ) : ParameterBag

Method Details

__construct() public méthode

public __construct ( Nelmio\Alice\Generator\Resolver\ChainableParameterResolverInterface $resolver, integer $limit = 5 )
$resolver Nelmio\Alice\Generator\Resolver\ChainableParameterResolverInterface
$limit integer

canResolve() public méthode

public canResolve ( Parameter $parameter ) : boolean
$parameter Nelmio\Alice\Parameter
Résultat boolean

resolve() public méthode

public resolve ( Parameter $parameter, ParameterBag $unresolvedParameters, ParameterBag $resolvedParameters, ResolvingContext $context = null, ParameterBag $previousResult = null, integer $counter = 1 ) : ParameterBag
$parameter Nelmio\Alice\Parameter
$unresolvedParameters Nelmio\Alice\ParameterBag
$resolvedParameters Nelmio\Alice\ParameterBag
$context Nelmio\Alice\Generator\Resolver\ResolvingContext
$previousResult Nelmio\Alice\ParameterBag
$counter integer
Résultat Nelmio\Alice\ParameterBag

withResolver() public méthode

public withResolver ( Nelmio\Alice\Generator\Resolver\ParameterResolverInterface $resolver )
$resolver Nelmio\Alice\Generator\Resolver\ParameterResolverInterface