Documentation

ProtectedToPrivateFixer extends AbstractFixer
in package

FinalYes
Tags
author

Filippo Tessarotto zoeslam@gmail.com

Table of Contents

Properties

$tokensAnalyzer  : TokensAnalyzer

Methods

getDefinition()  : FixerDefinitionInterface
getPriority()  : int
{@inheritdoc}
isCandidate()  : bool
applyFix()  : void
isClassCandidate()  : bool
Consider symbol as candidate for fixing if it's: - an Enum (PHP8.1+) - a class, which: - is not anonymous - is not final - does not use traits - does not extend other class.

Properties

Methods

getPriority()

{@inheritdoc}

public getPriority() : int

Must run before OrderedClassElementsFixer. Must run after FinalClassFixer, FinalInternalClassFixer.

Return values
int

isClassCandidate()

Consider symbol as candidate for fixing if it's: - an Enum (PHP8.1+) - a class, which: - is not anonymous - is not final - does not use traits - does not extend other class.

private isClassCandidate(Tokens $tokens, int $classIndex) : bool
Parameters
$tokens : Tokens
$classIndex : int
Return values
bool

        
On this page

Search results