public function __construct(ChainableParameterResolverInterface $resolver, int $limit = 5) { $this->resolver = $resolver; if (2 >= $limit) { throw InvalidArgumentExceptionFactory::createForInvalidLimitValueForRecursiveCalls($limit); } $this->limit = $limit; }