PHP Класс Kohana_Sniffs_NamingConventions_ValidFunctionNameSniff, coding-standards

Автор: Matthew Turland ([email protected])
Наследование: extends PHP_CodeSniffer_Standards_AbstractScopeSniff
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$_magicFunctions Copied from the base class because it's declared as private there
$_magicMethods Copied from the base class because it's declared as private there

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

Метод Описание
__construct ( ) : void Constructor.

Защищенные методы

Метод Описание
isInvalidName ( string $name ) : boolean Supporting method to validate a function or method name.
processTokenOutsideScope ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr ) : void Processes the tokens outside the scope.
processTokenWithinScope ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr, integer $currScope ) : void Processes the tokens within the scope.

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

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

Constructor.
public __construct ( ) : void
Результат void

isInvalidName() защищенный Метод

Supporting method to validate a function or method name.
protected isInvalidName ( string $name ) : boolean
$name string Name of the function or method to validate
Результат boolean TRUE if the function or method name is valid, FALSE otherwise

processTokenOutsideScope() защищенный Метод

Processes the tokens outside the scope.
protected processTokenOutsideScope ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr ) : void
$phpcsFile PHP_CodeSniffer_File File being processed
$stackPtr integer Position where this token was found
Результат void

processTokenWithinScope() защищенный Метод

Processes the tokens within the scope.
protected processTokenWithinScope ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr, integer $currScope ) : void
$phpcsFile PHP_CodeSniffer_File File being processed
$stackPtr integer Position where this token was found
$currScope integer Position of the current scope
Результат void

Описание свойств

$_magicFunctions защищенное свойство

Copied from the base class because it's declared as private there
protected $_magicFunctions

$_magicMethods защищенное свойство

Copied from the base class because it's declared as private there
protected $_magicMethods