private function extractArguments(): array
    {
        $parameters = [];

        //Use the Reflection API to create Parameter Value object
        foreach ($this->getReflectionInstance()->getParameters() as $param) {
            $name = $param->getName();
            $hasDefault = $param->isDefaultValueAvailable();

            //Default value. To null if the parameter has no default value
            $defaultValue = null;
            if (true === $hasDefault) {
                $defaultValue = $param->getDefaultValue();
            }
            $class = $param->getClass();

            $parameters[$name] = new Parameter($name, $hasDefault, $defaultValue, $class);
        }

        return $parameters;
    }
private function extractArguments(): array
    {
        $parameters = [];

        //Use the Reflection API to create Parameter Value object
        foreach ($this->getReflectionInstance()->getParameters() as $param) {
            $name = $param->getName();
            $hasDefault = $param->isDefaultValueAvailable();

            //Default value. To null if the parameter has no default value
            $defaultValue = null;
            if (true === $hasDefault) {
                $defaultValue = $param->getDefaultValue();
            }
            $class = $param->getClass();

            $parameters[$name] = new Parameter($name, $hasDefault, $defaultValue, $class);
        }

        return $parameters;
    }
private function extractArguments ( ) : array { $ parameters = [ ] ; //Use the Reflection API to create Parameter Value object foreach ( $ this -> getReflectionInstance ( ) -> getParameters ( ) as $ param ) { $ name = $ param -> getName ( ) ; $ hasDefault = $ param -> isDefaultValueAvailable ( ) ; //Default value. To null if the parameter has no default value $ defaultValue = null ; if ( true === $ hasDefault ) { $ defaultValue = $ param -> getDefaultValue ( ) ; } $ class = $ param -> getClass ( ) ; $ parameters [ $ name ] = new Parameter ( $ name , $ hasDefault , $ defaultValue , $ class ) ; } return $ parameters ; }
To extract controller's parameter from \Reflection Api and convert into ParameterInterface instance.

@return array
@throws \ReflectionException
To extract controller s parameter from \ Reflection Api and convert into ParameterInterface instance .