File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
src/Symfony/Component/Serializer/Normalizer Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,8 @@ class GetSetMethodNormalizer extends SerializerAwareNormalizer implements Normal
46
46
* @param callable[] $callbacks help normalize the result
47
47
*
48
48
* @throws InvalidArgumentException if a non-callable callback is set
49
+ *
50
+ * @return GetSetMethodNormalizer
49
51
*/
50
52
public function setCallbacks (array $ callbacks )
51
53
{
@@ -55,26 +57,36 @@ public function setCallbacks(array $callbacks)
55
57
}
56
58
}
57
59
$ this ->callbacks = $ callbacks ;
60
+
61
+ return $ this ;
58
62
}
59
63
60
64
/**
61
65
* Set ignored attributes for normalization
62
66
*
63
67
* @param array $ignoredAttributes
68
+ *
69
+ * @return GetSetMethodNormalizer
64
70
*/
65
71
public function setIgnoredAttributes (array $ ignoredAttributes )
66
72
{
67
73
$ this ->ignoredAttributes = $ ignoredAttributes ;
74
+
75
+ return $ this ;
68
76
}
69
77
70
78
/**
71
79
* Set attributes to be camelized on denormalize
72
80
*
73
81
* @param array $camelizedAttributes
82
+ *
83
+ * @return GetSetMethodNormalizer
74
84
*/
75
85
public function setCamelizedAttributes (array $ camelizedAttributes )
76
86
{
77
87
$ this ->camelizedAttributes = $ camelizedAttributes ;
88
+
89
+ return $ this ;
78
90
}
79
91
80
92
/**
You can’t perform that action at this time.
0 commit comments