PHP 클래스 PhpCsFixer\Fixer\ClassNotation\NoPhp4ConstructorFixer

저자: Matteo Beccati ([email protected])
상속: extends PhpCsFixer\AbstractFixer
파일 보기 프로젝트 열기: friendsofphp/php-cs-fixer

공개 메소드들

메소드 설명
fix ( SplFileInfo $file, Tokens $tokens )
getName ( )
getPriority ( )
isCandidate ( Tokens $tokens )
isRisky ( )

보호된 메소드들

메소드 설명
getDescription ( )

비공개 메소드들

메소드 설명
findFunction ( Tokens $tokens, string $name, integer $startIndex, integer $endIndex ) : array | null Find a function or method matching a given name within certain bounds.
fixConstructor ( Tokens $tokens, string $className, integer $classStart, integer $classEnd ) Fix constructor within a class, if possible.
fixInfiniteRecursion ( Tokens $tokens, integer $start, integer $end ) Fix a particular infinite recursion issue happening when the parent class has __construct and the child has only a PHP4 constructor that calls the parent constructor as $this->__construct().
fixParent ( Tokens $tokens, integer $classStart, integer $classEnd ) Fix calls to the parent constructor within a class.
getWrapperMethodSequence ( Tokens $tokens, string $method, integer $startIndex, integer $bodyIndex ) : array Generate the sequence of tokens necessary for the body of a wrapper method that simply calls $this->{$method}( [args.

메소드 상세

fix() 공개 메소드

public fix ( SplFileInfo $file, Tokens $tokens )
$file SplFileInfo
$tokens PhpCsFixer\Tokenizer\Tokens

getDescription() 보호된 메소드

protected getDescription ( )

getName() 공개 메소드

public getName ( )

getPriority() 공개 메소드

public getPriority ( )

isCandidate() 공개 메소드

public isCandidate ( Tokens $tokens )
$tokens PhpCsFixer\Tokenizer\Tokens

isRisky() 공개 메소드

public isRisky ( )