Свойство | Type | Description | |
---|---|---|---|
$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 |
Méthode | Description | |
---|---|---|
__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 ) |
public __construct ( $changes = [] ) |
public addSpot ( $cate, $identified, $message, $version = '', $line = null, $file = null ) |
public callChange ( $name, $method, $args ) |
protected $function |