Transformer/DenormalizeTransformer.php
public function transform($value, array $options = [])
    {
        $resolver = new OptionsResolver();
        $this->configureOptions($resolver);
        $options = $resolver->resolve($options);

        return $this->denormalizer->denormalize(
            $value,
            $options['class'],
            $options['format'],
            $options['context']
        );
    }
public function transform($value, array $options = [])
    {
        $resolver = new OptionsResolver();
        $this->configureOptions($resolver);
        $options = $resolver->resolve($options);

        return $this->denormalizer->denormalize(
            $value,
            $options['class'],
            $options['format'],
            $options['context']
        );
    }
@param mixed $value
@param array $options

@throws \Symfony\Component\OptionsResolver\Exception\UndefinedOptionsException
@throws \Symfony\Component\OptionsResolver\Exception\OptionDefinitionException
@throws \Symfony\Component\OptionsResolver\Exception\NoSuchOptionException
@throws \Symfony\Component\OptionsResolver\Exception\MissingOptionsException
@throws \Symfony\Component\OptionsResolver\Exception\InvalidOptionsException
@throws \Symfony\Component\OptionsResolver\Exception\AccessException
@throws \Symfony\Component\Serializer\Exception\UnexpectedValueException
@throws \Symfony\Component\Serializer\Exception\RuntimeException
@throws \Symfony\Component\Serializer\Exception\LogicException
@throws \Symfony\Component\Serializer\Exception\InvalidArgumentException
@throws \Symfony\Component\Serializer\Exception\ExtraAttributesException
@throws \Symfony\Component\Serializer\Exception\BadMethodCallException
@throws \Symfony\Component\OptionsResolver\Exception\ExceptionInterface

@return mixed