Method | Description | |
---|---|---|
__construct ( ) | Constructs a Squiz_Sniffs_Classes_SelfMemberReferenceSniff. |
Method | Description | |
---|---|---|
getDeclarationNameWithNamespace ( array $tokens, integer $stackPtr ) : string | Returns the declaration names for classes/interfaces/functions with a namespace. | |
getNamespaceOfScope ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr ) : string | Returns the namespace declaration of a file. | |
processTokenWithinScope ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr, integer $currScope ) : void | Processes the function tokens within the class. |
public __construct ( ) |
protected getNamespaceOfScope ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr ) : string | ||
$phpcsFile | PHP_CodeSniffer_File | The file where this token was found. |
$stackPtr | integer | The position where the search for the namespace declaration will start. |
return | string |
protected processTokenWithinScope ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr, integer $currScope ) : void | ||
$phpcsFile | PHP_CodeSniffer_File | The file where this token was found. |
$stackPtr | integer | The position where the token was found. |
$currScope | integer | The current scope opener token. |
return | void |