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 @@ -41,6 +41,8 @@ public function __construct(ClassMetadataFactory $classMetadataFactory = null)
41
41
*
42
42
* @param array $callbacks help normalize the result
43
43
*
44
+ * @return self
45
+ *
44
46
* @throws InvalidArgumentException if a non-callable callback is set
45
47
*/
46
48
public function setCallbacks (array $ callbacks )
@@ -54,26 +56,36 @@ public function setCallbacks(array $callbacks)
54
56
}
55
57
}
56
58
$ this ->callbacks = $ callbacks ;
59
+
60
+ return $ this ;
57
61
}
58
62
59
63
/**
60
64
* Set ignored attributes for normalization and denormalization.
61
65
*
62
66
* @param array $ignoredAttributes
67
+ *
68
+ * @return self
63
69
*/
64
70
public function setIgnoredAttributes (array $ ignoredAttributes )
65
71
{
66
72
$ this ->ignoredAttributes = $ ignoredAttributes ;
73
+
74
+ return $ this ;
67
75
}
68
76
69
77
/**
70
78
* Set attributes to be camelized on denormalize.
71
79
*
72
80
* @param array $camelizedAttributes
81
+ *
82
+ * @return self
73
83
*/
74
84
public function setCamelizedAttributes (array $ camelizedAttributes )
75
85
{
76
86
$ this ->camelizedAttributes = $ camelizedAttributes ;
87
+
88
+ return $ this ;
77
89
}
78
90
79
91
/**
You can’t perform that action at this time.
0 commit comments