getMappedClass example

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$contextnew \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[] */
    
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$contextnew \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[] */
    
Home | Imprint | This part of the site doesn't use cookies.