Parcourir la source

[Serializer] Added docblock

Jordi Boggiano il y a 14 ans
Parent
commit
cb727dbde3
1 fichiers modifiés avec 6 ajouts et 2 suppressions
  1. 6 2
      src/Symfony/Component/Serializer/Serializer.php

+ 6 - 2
src/Symfony/Component/Serializer/Serializer.php

@@ -32,9 +32,13 @@ class Serializer implements SerializerInterface
     protected $encoders = array();
     private $normalizerCache = array();
 
-    public function isStructuredType($val)
+    /**
+     * @param mixed $value value to test
+     * @return Boolean whether the type is a structured type (array + objects)
+     */
+    public function isStructuredType($value)
     {
-        return null !== $val && !is_scalar($val);
+        return null !== $value && !is_scalar($value);
     }
 
     /**