[Serializer] Added docblock

This commit is contained in:
Jordi Boggiano 2011-04-03 15:14:07 +02:00
parent 424a1dad27
commit cb727dbde3

View File

@ -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);
}
/**