Below is a test that listens to methods that exist only within classes:
[line 70]
The position in the tokens array that opened the current scope.PHP_CodeSniffer_Standards_AbstractScopeSniff __construct(
array
$scopeTokens, array
$tokens, [boolean
$listenOutside = false])
Overridden in child classes as:
void process(
PHP_CodeSniffer_File
$phpcsFile, int
$stackPtr)
void processTokenOutsideScope(
PHP_CodeSniffer_File
$phpcsFile, int
$stackPtr)
Overridden in child classes as:
void processTokenWithinScope(
PHP_CodeSniffer_File
$phpcsFile, int
$stackPtr, int
$currScope)
Overridden in child classes as:
array(int) register(
)
DO NOT OVERRIDE THIS METHOD. Use the constructor of this class to register for the desired tokens and scope.