PHP Class ObjectCalisthenics\Sniffs\Metrics\MethodPerClassLimitSniff

Author: Guilherme Blanco ([email protected])
Inheritance: implements PHP_CodeSniffer_Snif\PHP_CodeSniffer_Sniff
Exibir arquivo Open project: object-calisthenics/phpcs-calisthenics-rules

Protected Properties

Property Type Description
$maxCount integer Maximum amount of methods per class.

Public Methods

Method Description
process ( PHP_CodeSniffer_File $phpcsFile, $stackPtr )
register ( ) : array

Private Methods

Method Description
getClassMethods ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr ) : array

Method Details

process() public method

public process ( PHP_CodeSniffer_File $phpcsFile, $stackPtr )
$phpcsFile PHP_CodeSniffer_File

register() public method

public register ( ) : array
return array

Property Details

$maxCount protected_oe property

Maximum amount of methods per class.
protected int $maxCount
return integer