src/Tokenizer/Analyzer/FunctionsAnalyzer.php
public function getFunctionArguments(Tokens $tokens, $methodIndex)
    {
        $argumentsStart = $tokens->getNextTokenOfKind($methodIndex, ['(']);
        $argumentsEnd = $tokens->findBlockEnd(Tokens::BLOCK_TYPE_PARENTHESIS_BRACE, $argumentsStart);
        $argumentAnalyzer = new ArgumentsAnalyzer();
        $arguments = [];

        foreach ($argumentAnalyzer->getArguments($tokens, $argumentsStart, $argumentsEnd) as $start => $end) {
            $argumentInfo = $argumentAnalyzer->getArgumentInfo($tokens, $start, $end);
            $arguments[$argumentInfo->getName()] = $argumentInfo;
        }

        return $arguments;
    }
public function getFunctionArguments(Tokens $tokens, $methodIndex)
    {
        $argumentsStart = $tokens->getNextTokenOfKind($methodIndex, ['(']);
        $argumentsEnd = $tokens->findBlockEnd(Tokens::BLOCK_TYPE_PARENTHESIS_BRACE, $argumentsStart);
        $argumentAnalyzer = new ArgumentsAnalyzer();
        $arguments = [];

        foreach ($argumentAnalyzer->getArguments($tokens, $argumentsStart, $argumentsEnd) as $start => $end) {
            $argumentInfo = $argumentAnalyzer->getArgumentInfo($tokens, $start, $end);
            $arguments[$argumentInfo->getName()] = $argumentInfo;
        }

        return $arguments;
    }
public function getFunctionArguments ( Tokens $ tokens , $ methodIndex ) { $ argumentsStart = $ tokens -> getNextTokenOfKind ( $ methodIndex , [ '(' ] ) ; $ argumentsEnd = $ tokens -> findBlockEnd ( Tokens :: BLOCK_TYPE_PARENTHESIS_BRACE , $ argumentsStart ) ; $ argumentAnalyzer = new ArgumentsAnalyzer ( ) ; $ arguments = [ ] ; foreach ( $ argumentAnalyzer -> getArguments ( $ tokens , $ argumentsStart , $ argumentsEnd ) as $ start => $ end ) { $ argumentInfo = $ argumentAnalyzer -> getArgumentInfo ( $ tokens , $ start , $ end ) ; $ arguments [ $ argumentInfo -> getName ( ) ] = $ argumentInfo ; } return $ arguments ; }
@param Tokens $tokens
@param int    $methodIndex

@return ArgumentAnalysis[]
@param Tokens $tokens @param int $methodIndex