FinalPublicMethodForAbstractClassFixer
extends AbstractFixer
in package
FinalYes
Tags
Table of Contents
Properties
- $magicMethods : array<string, true>
Methods
- getDefinition() : FixerDefinitionInterface
- isCandidate() : bool
- isRisky() : bool
- applyFix() : void
- fixClass() : void
Properties
$magicMethods
private
array<string, true>
$magicMethods
= ['__construct' => true, '__destruct' => true, '__call' => true, '__callstatic' => true, '__get' => true, '__set' => true, '__isset' => true, '__unset' => true, '__sleep' => true, '__wakeup' => true, '__tostring' => true, '__invoke' => true, '__set_state' => true, '__clone' => true, '__debuginfo' => true]
Methods
getDefinition()
public
getDefinition() : FixerDefinitionInterface
Return values
FixerDefinitionInterfaceisCandidate()
public
isCandidate(Tokens $tokens) : bool
Parameters
- $tokens : Tokens
Return values
boolisRisky()
public
isRisky() : bool
Return values
boolapplyFix()
protected
applyFix(SplFileInfo $file, Tokens $tokens) : void
Parameters
- $file : SplFileInfo
- $tokens : Tokens
fixClass()
private
fixClass(Tokens $tokens, int $classOpenIndex, int $classCloseIndex) : void
Parameters
- $tokens : Tokens
- $classOpenIndex : int
- $classCloseIndex : int