PHP Class PhpMigration\Changes\AbstractChange

Afficher le fichier Open project: monque/php-migration

Protected Properties

Свойство Type Description
$version Version represents when this change do perform
$visitor Visitor who hold this change instance

Méthodes publiques

Méthode Description
__construct ( ) Initialization of properties
__destruct ( ) De-initialization of properties, after finish()
addSpot ( $cate, $identified, $message, $line = null, $file = null ) Quick method to add spot to visitor
afterTraverse ( array $nodes ) Called after Traverser woking done
beforeTraverse ( array $nodes ) Called before Traverser woking
enterNode ( $node ) Called when Traverser enter a node
finish ( ) Called after all file have been parsed Usually process data collected in traversing, and return
leaveNode ( $node ) Called when Traverser leave a node
prepare ( ) Called before any processing, after __construct()
setVisitor ( $visitor ) Assign visitor

Method Details

__construct() public méthode

Initialization of properties
public __construct ( )

__destruct() public méthode

De-initialization of properties, after finish()
public __destruct ( )

addSpot() public méthode

Quick method to add spot to visitor
public addSpot ( $cate, $identified, $message, $line = null, $file = null )

afterTraverse() public méthode

Called after Traverser woking done
public afterTraverse ( array $nodes )
$nodes array

beforeTraverse() public méthode

Called before Traverser woking
public beforeTraverse ( array $nodes )
$nodes array

enterNode() public méthode

Called when Traverser enter a node
public enterNode ( $node )

finish() public méthode

Called after all file have been parsed Usually process data collected in traversing, and return
public finish ( )

leaveNode() public méthode

Called when Traverser leave a node
public leaveNode ( $node )

prepare() public méthode

Called before any processing, after __construct()
public prepare ( )

setVisitor() public méthode

Assign visitor
public setVisitor ( $visitor )

Property Details

$version protected_oe static_oe property

Version represents when this change do perform
protected static $version

$visitor protected_oe property

Visitor who hold this change instance
protected $visitor