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