FinalPublicMethodForAbstractClassFixer
extends AbstractFixer
in package
Tags
Table of Contents
- $magicMethods : array<string|int, mixed>
- getDefinition() : mixed
- {@inheritdoc}
- isCandidate() : mixed
- {@inheritdoc}
- isRisky() : mixed
- {@inheritdoc}
- applyFix() : mixed
- {@inheritdoc}
- fixClass() : mixed
Properties
$magicMethods
private
array<string|int, mixed>
$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()
{@inheritdoc}
public
getDefinition() : mixed
Return values
mixed —isCandidate()
{@inheritdoc}
public
isCandidate(Tokens $tokens) : mixed
Parameters
- $tokens : Tokens
Return values
mixed —isRisky()
{@inheritdoc}
public
isRisky() : mixed
Return values
mixed —applyFix()
{@inheritdoc}
protected
applyFix(SplFileInfo $file, Tokens $tokens) : mixed
Parameters
- $file : SplFileInfo
- $tokens : Tokens
Return values
mixed —fixClass()
private
fixClass(Tokens $tokens, int $classOpenIndex, int $classCloseIndex) : mixed
Parameters
- $tokens : Tokens
- $classOpenIndex : int
- $classCloseIndex : int