return new \
ArrayObject();
} return $data;
} /**
* @return object
*/
protected function instantiateObject(array &
$data, string
$class, array &
$context, \ReflectionClass
$reflectionClass, array|bool
$allowedAttributes, string
$format = null
) { if ($class !==
$mappedClass =
$this->
getMappedClass($data,
$class,
$context)) { return $this->
instantiateObject($data,
$mappedClass,
$context,
new \
ReflectionClass($mappedClass),
$allowedAttributes,
$format);
} return parent::
instantiateObject($data,
$class,
$context,
$reflectionClass,
$allowedAttributes,
$format);
} /**
* Gets and caches attributes for the given object, format and context.
*
* @return string[]
*/