PHP 클래스 PhpCsFixer\Fixer\ClassNotation\VisibilityRequiredFixer

저자: Dariusz Rumiński ([email protected])
저자: SpacePossum
상속: extends PhpCsFixer\AbstractFixer, implements PhpCsFixer\Fixer\ConfigurableFixerInterface
파일 보기 프로젝트 열기: friendsofphp/php-cs-fixer

공개 메소드들

메소드 설명
configure ( array $configuration = null ) Any of the class elements 'property', 'method' or 'const' can be configured.
fix ( SplFileInfo $file, Tokens $tokens )
isCandidate ( Tokens $tokens )

보호된 메소드들

메소드 설명
getDescription ( )

비공개 메소드들

메소드 설명
fixConstVisibility ( Tokens $tokens, integer $index )
fixMethodVisibility ( Tokens $tokens, integer $index )
fixPropertyVisibility ( Tokens $tokens, integer $index )
grabAttribsBeforeMethodToken ( Tokens $tokens, integer $index ) : array Grab attributes before method token at given index.
grabAttribsBeforePropertyToken ( Tokens $tokens, integer $index ) : array Grab attributes before property token at given index.
grabAttribsBeforeToken ( Tokens $tokens, integer $index, array $tokenAttribsMap, array $attribs ) : array Grab info about attributes before token at given index.
overrideAttribs ( Tokens $tokens, integer $memberIndex, array $attribs ) Apply token attributes.

메소드 상세

configure() 공개 메소드

Note: the 'const' configuration is only valid when running on PHP >= 7.1 Use 'null' for default configuration ('property', 'method').
public configure ( array $configuration = null )
$configuration array

fix() 공개 메소드

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

getDescription() 보호된 메소드

protected getDescription ( )

isCandidate() 공개 메소드

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