public denormalize ( Nelmio\Alice\FixtureInterface $scope, Nelmio\Alice\FixtureBuilder\Denormalizer\FlagParserInterface $parser, array $unparsedConstructor ) : Nelmio\Alice\Definition\MethodCallInterface | ||
$scope | Nelmio\Alice\FixtureInterface | |
$parser | Nelmio\Alice\FixtureBuilder\Denormalizer\FlagParserInterface | |
$unparsedConstructor | array | |
Résultat | Nelmio\Alice\Definition\MethodCallInterface |
/** * @inheritdoc */ public function denormalize(FixtureInterface $scope, FlagParserInterface $parser, array $unparsedConstructor) : MethodCallInterface { try { return $this->simpleConstructorDenormalizer->denormalize($scope, $parser, $unparsedConstructor); } catch (UnexpectedValueException $exception) { // Continue } /** @var string $firstKey */ $firstKey = key($unparsedConstructor); list($caller, $method) = $this->getCallerReference($scope, $firstKey); $arguments = $this->simpleConstructorDenormalizer->denormalize($scope, $parser, $unparsedConstructor[$firstKey]); return new MethodCallWithReference($caller, $method, $arguments->getArguments()); }