Documentation

SelfAccessorFixer extends AbstractFixer
in package

Tags
author

Gregor Harlan gharlan@web.de

Table of Contents

getDefinition()  : mixed
{@inheritdoc}
isCandidate()  : mixed
{@inheritdoc}
isRisky()  : mixed
{@inheritdoc}
applyFix()  : mixed
{@inheritdoc}
getClassStart()  : mixed
replaceNameOccurrences()  : mixed
Replace occurrences of the name of the classy element by "self" (if possible).

Methods

getDefinition()

{@inheritdoc}

public getDefinition() : mixed
Return values
mixed

applyFix()

{@inheritdoc}

protected applyFix(SplFileInfo $file, Tokens $tokens) : mixed
Parameters
$file : SplFileInfo
$tokens : Tokens
Return values
mixed

getClassStart()

private getClassStart(Tokens $tokens, mixed $index, mixed $namespace) : mixed
Parameters
$tokens : Tokens
$index : mixed
$namespace : mixed
Return values
mixed

replaceNameOccurrences()

Replace occurrences of the name of the classy element by "self" (if possible).

private replaceNameOccurrences(Tokens $tokens, string $namespace, string $name, int $startIndex, int $endIndex) : mixed
Parameters
$tokens : Tokens
$namespace : string
$name : string
$startIndex : int
$endIndex : int
Return values
mixed

Search results