private function getParametersDefinition(\ReflectionFunctionAbstract $constructor)
    {
        $parameters = [];

        foreach ($constructor->getParameters() as $index => $parameter) {
            // Skip optional parameters
            if ($parameter->isOptional()) {
                continue;
            }

            $parameterClass = $parameter->getClass();

            if ($parameterClass) {
                $parameters[$index] = new EntryReference($parameterClass->getName());
            }
        }

        return $parameters;
    }
private function getParametersDefinition(\ReflectionFunctionAbstract $constructor)
    {
        $parameters = [];

        foreach ($constructor->getParameters() as $index => $parameter) {
            // Skip optional parameters
            if ($parameter->isOptional()) {
                continue;
            }

            $parameterClass = $parameter->getClass();

            if ($parameterClass) {
                $parameters[$index] = new EntryReference($parameterClass->getName());
            }
        }

        return $parameters;
    }
private function getParametersDefinition ( \ ReflectionFunctionAbstract $ constructor ) { $ parameters = [ ] ; foreach ( $ constructor -> getParameters ( ) as $ index => $ parameter ) { // Skip optional parameters if ( $ parameter -> isOptional ( ) ) { continue ; } $ parameterClass = $ parameter -> getClass ( ) ; if ( $ parameterClass ) { $ parameters [ $ index ] = new EntryReference ( $ parameterClass -> getName ( ) ) ; } } return $ parameters ; }
Read the type-hinting from the parameters of the function.
Read the type - hinting from the parameters of the function .