PHP Class ObjectCalisthenics\AbstractPropertyTypePerClassLimitSniff

Check for untracked property types per class limit too.
Exibir arquivo Open project: object-calisthenics/phpcs-calisthenics-rules

Protected Properties

Property Type Description
$trackedMaxCount integer
$untrackedMaxCount integer

Public Methods

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

Protected Methods

Method Description
getTrackedPropertyTypeList ( ) : array

Private Methods

Method Description
checkTotalPropertiesAmount ( ) : boolean
checkTrackedClassPropertyAmount ( ) : string
checkTrackedClassPropertyTypeAmount ( ) : array
checkTrackedPropertiesAmount ( ) : boolean
checkUntrackedClassPropertyAmount ( ) : string
checkUntrackedPropertyTypeAmount ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr )
getClassPropertiesSegregatedByType ( ) : array

Method Details

getTrackedPropertyTypeList() abstract protected method

abstract protected getTrackedPropertyTypeList ( ) : array
return array

process() public method

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

register() public method

public register ( ) : array
return array

Property Details

$trackedMaxCount protected_oe property

protected int $trackedMaxCount
return integer

$untrackedMaxCount protected_oe property

protected int $untrackedMaxCount
return integer