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

Inheritance: implements Nelmio\Alice\Generator\Resolver\ChainableParameterResolverInterface, implements Nelmio\Alice\Generator\Resolver\ParameterResolverAwareInterface, use trait Nelmio\Alice\IsAServiceTrait
Show file Open project: nelmio/alice Class Usage Examples

Public Methods

Method Description
__construct ( Nelmio\Alice\Generator\Resolver\ParameterResolverInterface $resolver = null )
canResolve ( Parameter $parameter ) : boolean
resolve ( Parameter $unresolvedArrayParameter, ParameterBag $unresolvedParameters, ParameterBag $resolvedParameters, ResolvingContext $context = null ) : ParameterBag
withResolver ( Nelmio\Alice\Generator\Resolver\ParameterResolverInterface $resolver ) : self

Method Details

__construct() public method

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

canResolve() public method

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

resolve() public method

public resolve ( Parameter $unresolvedArrayParameter, ParameterBag $unresolvedParameters, ParameterBag $resolvedParameters, ResolvingContext $context = null ) : ParameterBag
$unresolvedArrayParameter Nelmio\Alice\Parameter
$unresolvedParameters Nelmio\Alice\ParameterBag
$resolvedParameters Nelmio\Alice\ParameterBag
$context Nelmio\Alice\Generator\Resolver\ResolvingContext
return Nelmio\Alice\ParameterBag

withResolver() public method

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