Neos\Flow\Property\TypeConverter\ObjectConverter::getConstructorArgumentsForClass PHP Method

getConstructorArgumentsForClass() protected method

Get the constructor argument reflection for the given object type.
protected getConstructorArgumentsForClass ( string $className ) : array
$className string
return array
    protected function getConstructorArgumentsForClass($className)
    {
        if (!isset($this->constructorReflectionFirstLevelCache[$className])) {
            $constructorSignature = [];
            // TODO: Check if we can get rid of this reflection service usage, directly reflecting doesn't work as the proxy class __construct has no arguments.
            if ($this->reflectionService->hasMethod($className, '__construct')) {
                $constructorSignature = $this->reflectionService->getMethodParameters($className, '__construct');
            }
            $this->constructorReflectionFirstLevelCache[$className] = $constructorSignature;
        }
        return $this->constructorReflectionFirstLevelCache[$className];
    }