private function isMethod(Tokens $tokens, $index)
    {
        $tokensAnalyzer = new TokensAnalyzer($tokens);

        return $tokens[$index]->isGivenKind(T_FUNCTION) && !$tokensAnalyzer->isLambda($index);
    }
private function isMethod(Tokens $tokens, $index)
    {
        $tokensAnalyzer = new TokensAnalyzer($tokens);

        return $tokens[$index]->isGivenKind(T_FUNCTION) && !$tokensAnalyzer->isLambda($index);
    }
private function isMethod ( Tokens $ tokens , $ index ) { $ tokensAnalyzer = new TokensAnalyzer ( $ tokens ) ; return $ tokens [ $ index ] -> isGivenKind ( T_FUNCTION ) && ! $ tokensAnalyzer -> isLambda ( $ index ) ; }
@param Tokens $tokens
@param int    $index

@return bool
@param Tokens $tokens @param int $index