- /**
- * Read class constructor signature
- *
- * @param string $className
- * @return ConstructorArgument[]|null
- * @throws \ReflectionException
- */
- public function getConstructor($className)
- {
- $unmappedArguments = $this->classReader->getConstructor($className);
- if ($unmappedArguments === null) {
- return $unmappedArguments;
- }
-
- $arguments = [];
- foreach ($unmappedArguments as $argument) {
- $arguments[] = new ConstructorArgument($argument);
- }
-
- return $arguments;
- }