@@ -38,43 +38,6 @@ function serialize($data, $format);
3838 */
3939 function deserialize ($ data , $ type , $ format );
4040
41- /**
42- * Normalizes any data into a set of arrays/scalars
43- *
44- * @param mixed $data data to normalize
45- * @param string $format format name, present to give the option to normalizers to act differently based on formats
46- * @return array|scalar
47- */
48- function normalize ($ data , $ format = null );
49-
50- /**
51- * Denormalizes data into the given type.
52- *
53- * @param mixed $data
54- * @param string $type
55- * @param string $format
56- * @return mixed
57- */
58- function denormalize ($ data , $ type , $ format = null );
59-
60- /**
61- * Encodes data into the given format
62- *
63- * @param mixed $data data to encode
64- * @param string $format format name
65- * @return array|scalar
66- */
67- function encode ($ data , $ format );
68-
69- /**
70- * Decodes a string from the given format back into PHP data
71- *
72- * @param string $data data to decode
73- * @param string $format format name
74- * @return mixed
75- */
76- function decode ($ data , $ format );
77-
7841 /**
7942 * Checks whether the serializer can serialize to given format
8043 *
@@ -90,27 +53,4 @@ function supportsSerialization($format);
9053 * @return Boolean
9154 */
9255 function supportsDeserialization ($ format );
93-
94- /**
95- * Checks whether the serializer can encode to given format
96- *
97- * @param string $format format name
98- * @return Boolean
99- */
100- function supportsEncoding ($ format );
101-
102- /**
103- * Checks whether the serializer can decode from given format
104- *
105- * @param string $format format name
106- * @return Boolean
107- */
108- function supportsDecoding ($ format );
109-
110- /**
111- * Get the encoder for the given format
112- *
113- * @return EncoderInterface
114- */
115- function getEncoder ($ format );
11656}
0 commit comments