PHP Class SlevomatCodingStandard\Sniffs\Classes\UnusedPrivateElementsSniff

Inheritance: implements PHP_CodeSniffer_Sniff
Show file Open project: slevomat/coding-standard

Public Properties

Property Type Description
$alwaysUsedPropertiesAnnotations string[]
$alwaysUsedPropertiesSuffixes string[]

Public Methods

Method Description
process ( PHP_CodeSniffer_File $phpcsFile, integer $classPointer )
register ( ) : integer[]

Private Methods

Method Description
findVisibilityModifier ( PHP_CodeSniffer_File $phpcsFile, array $tokens, integer $methodTokenPointer ) : integer | null
getAlwaysUsedPropertiesAnnotations ( ) : string[]
getAlwaysUsedPropertiesSuffixes ( ) : string[]
getMethods ( PHP_CodeSniffer_File $phpcsFile, array $tokens, array $classToken ) : integer[]
getPhpDocTags ( PHP_CodeSniffer_File $phpcsFile, array $tokens, integer $privateTokenPointer ) : string[]
getProperties ( PHP_CodeSniffer_File $phpcsFile, array $tokens, array $classToken ) : integer[]

Method Details

process() public method

public process ( PHP_CodeSniffer_File $phpcsFile, integer $classPointer )
$phpcsFile PHP_CodeSniffer_File
$classPointer integer

register() public method

public register ( ) : integer[]
return integer[]

Property Details

$alwaysUsedPropertiesAnnotations public property

public string[] $alwaysUsedPropertiesAnnotations
return string[]

$alwaysUsedPropertiesSuffixes public property

public string[] $alwaysUsedPropertiesSuffixes
return string[]