Метод | Описание | |
---|---|---|
getFullyQualifiedTypeNameFromUse ( PHP_CodeSniffer_File $phpcsFile, integer $usePointer ) : string | ||
getNameAsReferencedInClassFromUse ( PHP_CodeSniffer_File $phpcsFile, integer $usePointer ) : string | ||
getUseStatements ( PHP_CodeSniffer_File $phpcsFile, integer $openTagPointer ) : |
||
isAnonymousFunctionUse ( PHP_CodeSniffer_File $phpcsFile, integer $usePointer ) : boolean | ||
isTraitUse ( PHP_CodeSniffer_File $phpcsFile, integer $usePointer ) : boolean |
Метод | Описание | |
---|---|---|
getUseStatementPointers ( PHP_CodeSniffer_File $phpcsFile, integer $openTagPointer ) : integer[] | Searches for all use statements in a file, skips bodies of classes and traits. |
public static getFullyQualifiedTypeNameFromUse ( PHP_CodeSniffer_File $phpcsFile, integer $usePointer ) : string | ||
$phpcsFile | PHP_CodeSniffer_File | |
$usePointer | integer | |
Результат | string |
public static getNameAsReferencedInClassFromUse ( PHP_CodeSniffer_File $phpcsFile, integer $usePointer ) : string | ||
$phpcsFile | PHP_CodeSniffer_File | |
$usePointer | integer | |
Результат | string |
public static getUseStatements ( PHP_CodeSniffer_File $phpcsFile, integer $openTagPointer ) : |
||
$phpcsFile | PHP_CodeSniffer_File | |
$openTagPointer | integer | |
Результат | canonicalName(string) => useStatement(\SlevomatCodingStandard\Helpers\UseStatement) |
public static isAnonymousFunctionUse ( PHP_CodeSniffer_File $phpcsFile, integer $usePointer ) : boolean | ||
$phpcsFile | PHP_CodeSniffer_File | |
$usePointer | integer | |
Результат | boolean |
public static isTraitUse ( PHP_CodeSniffer_File $phpcsFile, integer $usePointer ) : boolean | ||
$phpcsFile | PHP_CodeSniffer_File | |
$usePointer | integer | |
Результат | boolean |