8000 merged branch lanthaler/master (PR #6030) · symfony/symfony@00d132a · GitHub
[go: up one dir, main page]

Skip to content

Commit 00d132a

Browse files
committed
merged branch lanthaler/master (PR #6030)
This PR was squashed before being merged into the master branch (closes #6030). Commits ------- 749dac1 Improve docBlock Discussion ---------- Improve docBlock This is just a minor change documenting the return type of `SerializerInterface::deserialize()`.
2 parents 9c6497f + 749dac1 commit 00d132a

File tree

10 files changed

+18
-0
lines changed

10 files changed

+18
-0
lines changed

src/Symfony/Component/Serializer/Encoder/DecoderInterface.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public function decode($data, $format);
3232
* Checks whether the serializer can decode from given format
3333
*
3434
* @param string $format format name
35+
*
3536
* @return Boolean
3637
*/
3738
public function supportsDecoding($format);

src/Symfony/Component/Serializer/Encoder/EncoderInterface.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public function encode($data, $format);
3232
* Checks whether the serializer can encode to given format
3333
*
3434
* @param string $format format name
35+
*
3536
* @return Boolean
3637
*/
3738
public function supportsEncoding($format);

src/Symfony/Component/Serializer/Encoder/XmlEncoder.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ public function decode($data, $format)
9696
* Checks whether the serializer can encode to given format
9797
*
9898
* @param string $format format name
99+
*
99100
* @return Boolean
100101
*/
101102
public function supportsEncoding($format)
@@ -107,6 +108,7 @@ public function supportsEncoding($format)
107108
* Checks whether the serializer can decode from given format
108109
*
109110
* @param string $format format name
111+
*
110112
* @return Boolean
111113
*/
112114
public function supportsDecoding($format)
@@ -116,6 +118,7 @@ public function supportsDecoding($format)
116118

117119
/**
118120
* Sets the root node name
121+
*
119122
* @param string $name root node name
120123
*/
121124
public function setRootNodeName($name)

src/Symfony/Component/Serializer/Normalizer/CustomNormalizer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public function denormalize($data, $class, $format = null)
4040
*
4141
* @param mixed $data Data to normalize.
4242
* @param string $format The format being (de-)serialized from or into.
43+
*
4344
* @return Boolean
4445
*/
4546
public function supportsNormalization($data, $format = null)
@@ -53,6 +54,7 @@ public function supportsNormalization($data, $format = null)
5354
* @param mixed $data Data to denormalize from.
5455
* @param string $type The class to which the data should be denormalized.
5556
* @param string $format The format being deserialized from.
57+
*
5658
* @return Boolean
5759
*/
5860
public function supportsDenormalization($data, $type, $format = null)

src/Symfony/Component/Serializer/Normalizer/DenormalizerInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ interface DenormalizerInterface
2424
* @param mixed $data data to restore
2525
* @param string $class the expected class to instantiate
2626
* @param string $format format the given data was extracted from
27+
*
2728
* @return object
2829
*/
2930
public function denormalize($data, $class, $format = null);
@@ -34,6 +35,7 @@ public function denormalize($data, $class, $format = null);
3435
* @param mixed $data Data to denormalize from.
3536
* @param string $type The class to which the data should be denormalized.
3637
* @param string $format The format being deserialized from.
38+
*
3739
* @return Boolean
3840
*/
3941
public function supportsDenormalization($data, $type, $format = null);

src/Symfony/Component/Serializer/Normalizer/GetSetMethodNormalizer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ public function supportsDenormalization($data, $type, $format = null)
161161
* Checks if the given class has any get{Property} method.
162162
*
163163
* @param string $class
164+
*
164165
* @return Boolean
165166
*/
166167
private function supports($class)

src/Symfony/Component/Serializer/Normalizer/NormalizableInterface.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ interface NormalizableInterface
3131
* can use it to normalize objects contained within this object.
3232
* @param string|null $format The format is optionally given to be able to normalize differently
3333
* based on different output formats.
34+
*
3435
* @return array|scalar
3536
*/
3637
public function normalize(NormalizerInterface $normalizer, $format = null);

src/Symfony/Component/Serializer/Normalizer/NormalizerInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ interface NormalizerInterface
2323
*
2424
* @param object $object object to normalize
2525
* @param string $format format the normalization result will be encoded as
26+
*
2627
* @return array|scalar
2728
*/
2829
public function normalize($object, $format = null);
@@ -32,6 +33,7 @@ public function normalize($object, $format = null);
3233
*
3334
* @param mixed $data Data to normalize.
3435
* @param string $format The format being (de-)serialized from or into.
36+
*
3537
* @return Boolean
3638
*/
3739
public function supportsNormalization($data, $format = null);

src/Symfony/Component/Serializer/Serializer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ final public function decode($data, $format)
220220
*
221221
* @param object $object object to normalize
222222
* @param string $format format name, present to give the option to normalizers to act differently based on formats
223+
*
223224
* @return array|scalar
224225
*/
225226
private function normalizeObject($object, $format = null)
@@ -250,6 +251,7 @@ private function normalizeObject($object, $format = null)
250251
* @param mixed $data data to restore
251252
* @param string $class the expected class to instantiate
252253
* @param string $format format name, present to give the option to normalizers to act differently based on formats
254+
*
253255
* @return object
254256
*/
255257
private function denormalizeObject($data, $class, $format = null)

src/Symfony/Component/Serializer/SerializerInterface.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ interface SerializerInterface
2323
*
2424
* @param mixed $data any data
2525
* @param string $format format name
26+
*
2627
* @return string
2728
*/
2829
public function serialize($data, $format);
@@ -33,6 +34,8 @@ public function serialize($data, $format);
3334
* @param mixed $data
3435
* @param string $type
3536
* @param string $format
37+
*
38+
* @return object
3639
*/
3740
public function deserialize($data, $type, $format);
3841
}

0 commit comments

Comments
 (0)
0