PHP Класс PSR2_Sniffs_Classes_ClassDeclarationSniff, PHP_CodeSniffer

Checks the declaration of the class and its inheritance is correct.
Автор: Greg Sherwood ([email protected])
Наследование: extends PEAR_Sniffs_Classes_ClassDeclarationSniff
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
process ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr ) : void Processes this test, when one of its tokens is encountered.
processClose ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr ) : void Processes the closing section of a class declaration.
processOpen ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr ) : void Processes the opening section of a class declaration.

Описание методов

process() публичный Метод

Processes this test, when one of its tokens is encountered.
public process ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr ) : void
$phpcsFile PHP_CodeSniffer_File The file being scanned.
$stackPtr integer The position of the current token in the stack passed in $tokens.
Результат void

processClose() публичный Метод

Processes the closing section of a class declaration.
public processClose ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr ) : void
$phpcsFile PHP_CodeSniffer_File The file being scanned.
$stackPtr integer The position of the current token in the stack passed in $tokens.
Результат void

processOpen() публичный Метод

Processes the opening section of a class declaration.
public processOpen ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr ) : void
$phpcsFile PHP_CodeSniffer_File The file being scanned.
$stackPtr integer The position of the current token in the stack passed in $tokens.
Результат void