public function resolve(ValueInterface $list, FixtureInterface $fixture, ResolvedFixtureSet $fixtureSet, array $scope, GenerationContext $context) : ResolvedValueWithFixtureSet
{
if (null === $this->resolver) {
throw ResolverNotFoundExceptionFactory::createUnexpectedCall(__METHOD__);
}
$values = $list->getValue();
foreach ($values as $index => $value) {
if ($value instanceof ValueInterface) {
$resolvedSet = $this->resolver->resolve($value, $fixture, $fixtureSet, $scope, $context);
$values[$index] = $resolvedSet->getValue();
$fixtureSet = $resolvedSet->getSet();
}
}
return new ResolvedValueWithFixtureSet($values, $fixtureSet);
}