PHP 클래스 Nelmio\Alice\Generator\Resolver\Parameter\Chainable\RecursiveParameterResolver

상속: implements Nelmio\Alice\Generator\Resolver\ChainableParameterResolverInterface, implements Nelmio\Alice\Generator\Resolver\ParameterResolverAwareInterface, use trait Nelmio\Alice\IsAServiceTrait
파일 보기 프로젝트 열기: nelmio/alice 1 사용 예제들

공개 메소드들

메소드 설명
__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 )

비공개 메소드들

메소드 설명
incrementCounter ( integer $counter, integer $limit, string $parameterKey ) : integer
mergeResults ( ParameterBag $previous, ParameterBag $new ) : ParameterBag

메소드 상세

__construct() 공개 메소드

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

canResolve() 공개 메소드

public canResolve ( Parameter $parameter ) : boolean
$parameter Nelmio\Alice\Parameter
리턴 boolean

resolve() 공개 메소드

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
리턴 Nelmio\Alice\ParameterBag

withResolver() 공개 메소드

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