PhpdocToPropertyTypeFixer
extends AbstractPhpdocToTypeDeclarationFixer
in package
FinalYes
Table of Contents
Methods
- getDefinition() : FixerDefinitionInterface
- getPriority() : int
- {@inheritdoc}
- isCandidate() : bool
- applyFix() : void
- createTokensFromRawType() : Tokens
- isSkippedType() : bool
Methods
getDefinition()
public
getDefinition() : FixerDefinitionInterface
Return values
FixerDefinitionInterfacegetPriority()
{@inheritdoc}
public
getPriority() : int
Must run before NoSuperfluousPhpdocTagsFixer, PhpdocAlignFixer. Must run after AlignMultilineCommentFixer, CommentToPhpdocFixer, PhpdocIndentFixer, PhpdocScalarFixer, PhpdocToCommentFixer, PhpdocTypesFixer.
Return values
intisCandidate()
public
isCandidate(Tokens $tokens) : bool
Parameters
- $tokens : Tokens
Return values
boolapplyFix()
protected
applyFix(SplFileInfo $file, Tokens $tokens) : void
Parameters
- $file : SplFileInfo
- $tokens : Tokens
createTokensFromRawType()
protected
createTokensFromRawType(string $type) : Tokens
Parameters
- $type : string
Return values
TokensisSkippedType()
protected
isSkippedType(string $type) : bool
Parameters
- $type : string