private denormalizeProperty ( PropertyDenormalizerInterface $propertyDenormalizer, Nelmio\Alice\FixtureBuilder\Denormalizer\FlagParserInterface $flagParser, string $unparsedPropertyName, $value, |
||
$propertyDenormalizer | PropertyDenormalizerInterface | |
$flagParser | Nelmio\Alice\FixtureBuilder\Denormalizer\FlagParserInterface | |
$unparsedPropertyName | string | |
$properties | ||
$scope | Nelmio\Alice\FixtureInterface | |
return |
private function denormalizeProperty(PropertyDenormalizerInterface $propertyDenormalizer, FlagParserInterface $flagParser, string $unparsedPropertyName, $value, PropertyBag $properties, FixtureInterface $scope) : PropertyBag
{
$flags = $flagParser->parse($unparsedPropertyName);
$propertyName = $flags->getKey();
$property = $propertyDenormalizer->denormalize($scope, $propertyName, $value, $flags);
return $properties->with($property);
}