PHP Класс PhpMigration\CheckVisitor

Наследование: extends PhpParser\NodeVisitorAbstract
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$changes Instances of the Change
$class Current class-like node (class, interface, trait)
$classStack Stack for record current class-like node
$code Current code
$file Current fileinfo
$funcStack Stack for record current function-like node
$function Current funciton-like node (function, method, closure)
$node Current node
$spots All Spots emitted by the Changes during check

Открытые методы

Метод Описание
__construct ( $changes = [] ) Empty spots, current state and save the Changes
addSpot ( $cate, $identified, $message, $version = '', $line = null, $file = null ) Add a new spot
afterTraverse ( array $nodes )
beforeTraverse ( array $nodes )
callChange ( $name, $method, $args ) The interface that allow a Change call another Change's method
enterNode ( PhpParser\Node $node )
finish ( )
getClass ( )
getClassName ( )
getCode ( )
getFile ( )
getFunction ( )
getSpots ( ) Get all spots
inClass ( )
inFunction ( )
leaveNode ( PhpParser\Node $node )
prepare ( )
setCode ( $code )
setFile ( SplFileInfo $file )

Описание методов

__construct() публичный Метод

Empty spots, current state and save the Changes
public __construct ( $changes = [] )

addSpot() публичный Метод

Add a new spot
public addSpot ( $cate, $identified, $message, $version = '', $line = null, $file = null )

afterTraverse() публичный Метод

public afterTraverse ( array $nodes )
$nodes array

beforeTraverse() публичный Метод

public beforeTraverse ( array $nodes )
$nodes array

callChange() публичный Метод

The interface that allow a Change call another Change's method
public callChange ( $name, $method, $args )

enterNode() публичный Метод

public enterNode ( PhpParser\Node $node )
$node PhpParser\Node

finish() публичный Метод

public finish ( )

getClass() публичный Метод

public getClass ( )

getClassName() публичный Метод

public getClassName ( )

getCode() публичный Метод

public getCode ( )

getFile() публичный Метод

public getFile ( )

getFunction() публичный Метод

public getFunction ( )

getSpots() публичный Метод

Get all spots
public getSpots ( )

inClass() публичный Метод

public inClass ( )

inFunction() публичный Метод

public inFunction ( )

leaveNode() публичный Метод

public leaveNode ( PhpParser\Node $node )
$node PhpParser\Node

prepare() публичный Метод

public prepare ( )

setCode() публичный Метод

public setCode ( $code )

setFile() публичный Метод

public setFile ( SplFileInfo $file )
$file SplFileInfo

Описание свойств

$changes защищенное свойство

Instances of the Change
protected $changes

$class защищенное свойство

Current class-like node (class, interface, trait)
protected $class

$classStack защищенное свойство

Stack for record current class-like node
protected $classStack

$code защищенное свойство

Current code
protected $code

$file защищенное свойство

Current fileinfo
protected $file

$funcStack защищенное свойство

Stack for record current function-like node
protected $funcStack

$function защищенное свойство

Current funciton-like node (function, method, closure)
protected $function

$node защищенное свойство

Current node
protected $node

$spots защищенное свойство

All Spots emitted by the Changes during check
protected $spots