PHP 클래스 ObjectCalisthenics\AbstractIdentifierLengthSniff

파일 보기 프로젝트 열기: object-calisthenics/phpcs-calisthenics-rules

보호된 프로퍼티들

프로퍼티 타입 설명
$minLength integer Minimum variable/method name length.
$tokenString string Token string representation.
$tokenTypeLengthFactor integer Token type length factor, reducing the actual size of token by a factor of value.

공개 메소드들

메소드 설명
process ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr )
register ( ) : array

보호된 메소드들

메소드 설명
isValid ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr ) : boolean

비공개 메소드들

메소드 설명
handleMinContentLength ( string $content )
isShortContentAllowed ( string $content ) : boolean

메소드 상세

isValid() 추상적인 보호된 메소드

abstract protected isValid ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr ) : boolean
$phpcsFile PHP_CodeSniffer_File
$stackPtr integer
리턴 boolean

process() 공개 메소드

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

register() 공개 메소드

public register ( ) : array
리턴 array

프로퍼티 상세

$minLength 보호되어 있는 프로퍼티

Minimum variable/method name length.
protected int $minLength
리턴 integer

$tokenString 보호되어 있는 프로퍼티

Token string representation.
protected string $tokenString
리턴 string

$tokenTypeLengthFactor 보호되어 있는 프로퍼티

Token type length factor, reducing the actual size of token by a factor of value.
protected int $tokenTypeLengthFactor
리턴 integer