private function getClassMethods(File $phpcsFile, $stackPtr)
    {
        $pointer = $stackPtr;
        $methods = [];

        while (($next = $phpcsFile->findNext(T_FUNCTION, $pointer + 1)) !== false) {
            $modifier = $this->getModifier($phpcsFile, $next);
            if ($this->isPublic($modifier) && !$this->isMagicFunction($phpcsFile->getDeclarationName($next))) {
                $methods[] = $next;
            }

            $pointer = $next;
        }

        return $methods;
    }
private function getClassMethods(File $phpcsFile, $stackPtr)
    {
        $pointer = $stackPtr;
        $methods = [];

        while (($next = $phpcsFile->findNext(T_FUNCTION, $pointer + 1)) !== false) {
            $modifier = $this->getModifier($phpcsFile, $next);
            if ($this->isPublic($modifier) && !$this->isMagicFunction($phpcsFile->getDeclarationName($next))) {
                $methods[] = $next;
            }

            $pointer = $next;
        }

        return $methods;
    }
private function getClassMethods ( File $ phpcsFile , $ stackPtr ) { $ pointer = $ stackPtr ; $ methods = [ ] ; while ( ( $ next = $ phpcsFile -> findNext ( T_FUNCTION , $ pointer + 1 ) ) !== false ) { $ modifier = $ this -> getModifier ( $ phpcsFile , $ next ) ; if ( $ this -> isPublic ( $ modifier ) && ! $ this -> isMagicFunction ( $ phpcsFile -> getDeclarationName ( $ next ) ) ) { $ methods [ ] = $ next ; } $ pointer = $ next ; } return $ methods ; }
Retrieve the list of class methods' pointers.

@param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned
@param int $stackPtr The position of the current token in the stack passed in $tokens.
@return array
@throws \PHP_CodeSniffer\Exceptions\RuntimeException
@throws \PHP_CodeSniffer\Exceptions\TokenizerException
Retrieve the list of class methods pointers .