ProtectedToPrivateFixer
extends AbstractFixer
in package
Tags
Table of Contents
- getDefinition() : mixed
- {@inheritdoc}
- getPriority() : mixed
- {@inheritdoc}
- isCandidate() : mixed
- {@inheritdoc}
- applyFix() : mixed
- {@inheritdoc}
- fixClass() : mixed
- skipClass() : bool
- Decide whether or not skip the fix for given class.
Methods
getDefinition()
{@inheritdoc}
public
getDefinition() : mixed
Return values
mixed —getPriority()
{@inheritdoc}
public
getPriority() : mixed
Must run before OrderedClassElementsFixer. Must run after FinalInternalClassFixer.
Return values
mixed —isCandidate()
{@inheritdoc}
public
isCandidate(Tokens $tokens) : mixed
Parameters
- $tokens : Tokens
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
Return values
mixed —skipClass()
Decide whether or not skip the fix for given class.
private
skipClass(Tokens $tokens, int $classIndex, int $classOpenIndex, int $classCloseIndex) : bool
Parameters
- $tokens : Tokens
- $classIndex : int
- $classOpenIndex : int
- $classCloseIndex : int