[Serializer] Added docblock
This commit is contained in:
parent
424a1dad27
commit
cb727dbde3
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user