瀏覽代碼

[Serializer] Added docblock

Jordi Boggiano 14 年之前
父節點
當前提交
cb727dbde3
共有 1 個文件被更改,包括 6 次插入2 次删除
  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);
     }
 
     /**