Symfony\Component\Serializer\Normalizer\AbstractNormalizer::getConstructor PHP Method

getConstructor() protected method

Returns the method to use to construct an object. This method must be either the object constructor or static.
protected getConstructor ( array &$data, string $class, array &$context, ReflectionClass $reflectionClass, array | boolean $allowedAttributes ) : ReflectionMethod | null
$data array
$class string
$context array
$reflectionClass ReflectionClass
$allowedAttributes array | boolean
return ReflectionMethod | null
    protected function getConstructor(array &$data, $class, array &$context, \ReflectionClass $reflectionClass, $allowedAttributes)
    {
        return $reflectionClass->getConstructor();
    }