PHP Class PhpMigration\Changes\v7dot0\ForeachLoop

See also: http://php.net/manual/en/migration70.incompatible.php#migration70.incompatible.foreach.array-pointer
Inheritance: extends PhpMigration\Changes\AbstractChange
Show file Open project: monque/php-migration

Protected Properties

Property Type Description
$depth
$funcTable No need check for end(), reset(), each(), next(), prev(), they all manipulate pointer by themself.
$version

Public Methods

Method Description
__construct ( )
beforeTraverse ( array $nodes )
enterNode ( $node )
leaveNode ( $node )

Method Details

__construct() public method

public __construct ( )

beforeTraverse() public method

public beforeTraverse ( array $nodes )
$nodes array

enterNode() public method

public enterNode ( $node )

leaveNode() public method

public leaveNode ( $node )

Property Details

$depth protected property

protected $depth

$funcTable protected property

No need check for end(), reset(), each(), next(), prev(), they all manipulate pointer by themself.
protected $funcTable

$version protected static property

protected static $version