if ($fromAccessor =
$this->
extractFromAccessor($class,
$property)) { return $fromAccessor;
} if ( ($context['enable_constructor_extraction'
] ??
$this->enableConstructorExtraction
) &&
$fromConstructor =
$this->
extractFromConstructor($class,
$property) ) { return $fromConstructor;
} if ($fromPropertyDeclaration =
$this->
extractFromPropertyDeclaration($class,
$property)) { return $fromPropertyDeclaration;
} return null;
} public function getTypesFromConstructor(string
$class, string
$property): ?array
{ try { $reflection =
new \
ReflectionClass($class);
} catch (\ReflectionException
) {