/**
* {@inheritdoc}
*
* @param ParameterValue $value
*
* @throws UnresolvableValueException
*/
public function resolve(ValueInterface $value, FixtureInterface $fixture, ResolvedFixtureSet $fixtureSet, array $scope, GenerationContext $context) : ResolvedValueWithFixtureSet
{
$parameterKey = $value->getValue();
$parameters = $fixtureSet->getParameters();
if (false === $parameters->has($parameterKey)) {
throw UnresolvableValueExceptionFactory::createForCouldNotFindParameter($parameterKey);
}
return new ResolvedValueWithFixtureSet($parameters->get($parameterKey), $fixtureSet);
}