PHP Class PhpMigration\Changes\AbstractChange

Mostra file Open project: monque/php-migration

Protected Properties

Property Type Description
$version Version represents when this change do perform
$visitor Visitor who hold this change instance

Public Methods

Method 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 method

Initialization of properties
public __construct ( )

__destruct() public method

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

addSpot() public method

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

afterTraverse() public method

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

beforeTraverse() public method

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

enterNode() public method

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

finish() public method

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

leaveNode() public method

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

prepare() public method

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

setVisitor() public method

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