Nelmio\Alice\Generator\Resolver\Value\Chainable\UniqueValueResolver::generateValue PHP Method

generateValue() private method

private generateValue ( UniqueValue $value, Nelmio\Alice\FixtureInterface $fixture, ResolvedFixtureSet $fixtureSet, array $scope, GenerationContext $context ) : array
$value Nelmio\Alice\Definition\Value\UniqueValue
$fixture Nelmio\Alice\FixtureInterface
$fixtureSet Nelmio\Alice\Generator\ResolvedFixtureSet
$scope array
$context Nelmio\Alice\Generator\GenerationContext
return array
    private function generateValue(UniqueValue $value, FixtureInterface $fixture, ResolvedFixtureSet $fixtureSet, array $scope, GenerationContext $context) : array
    {
        $realValue = $value->getValue();
        if ($realValue instanceof ValueInterface) {
            $result = $this->resolver->resolve($value->getValue(), $fixture, $fixtureSet, $scope, $context);
            return [$value->withValue($result->getValue()), $result->getSet()];
        }
        return [$value, $fixtureSet];
    }