11
11
12
12
namespace Symfony \Component \Serializer \Normalizer ;
13
13
14
+ use Symfony \Component \Serializer \Exception \BadMethodCallException ;
15
+ use Symfony \Component \Serializer \Exception \ExtraAttributesException ;
16
+ use Symfony \Component \Serializer \Exception \InvalidArgumentException ;
17
+ use Symfony \Component \Serializer \Exception \LogicException ;
18
+ use Symfony \Component \Serializer \Exception \RuntimeException ;
19
+ use Symfony \Component \Serializer \Exception \UnexpectedValueException ;
20
+
14
21
/**
15
22
* Defines the interface of denormalizers.
16
23
*
@@ -28,12 +35,12 @@ interface DenormalizerInterface
28
35
*
29
36
* @return object
30
37
*
31
- * @throws \Symfony\Component\Serializer\Exception\ BadMethodCallException
32
- * @throws \Symfony\Component\Serializer\Exception\ InvalidArgumentException
33
- * @throws \Symfony\Component\Serializer\Exception\ UnexpectedValueException
34
- * @throws \Symfony\Component\Serializer\Exception\ ExtraAttributesException
35
- * @throws \Symfony\Component\Serializer\Exception\ LogicException
36
- * @throws \Symfony\Component\Serializer\Exception\ RuntimeException
38
+ * @throws BadMethodCallException Occurs when the normalizer is not call in an expected context
39
+ * @throws InvalidArgumentException Occurs when the arguments are not coherent or not supported
40
+ * @throws UnexpectedValueException Occurs when the item cannot be hydrated with the given data
41
+ * @throws ExtraAttributesException Occurs when the item doesn't have attribute to receive given data
42
+ * @throws LogicException Occurs when the normalizer is not supposed to denormalize
43
+ * @throws RuntimeException Occurs if the class cannot be instantiate
37
44
*/
38
45
public function denormalize ($ data , $ class , $ format = null , array $ context = array ());
39
46
0 commit comments