PHP Class Sstalle\php7cc\NodeVisitor\AbstractVisitor

Inheritance: extends PhpParser\NodeVisitorAbstract, implements Sstalle\php7cc\NodeVisitor\VisitorInterface
显示文件 Open project: sstalle/php7cc

Protected Properties

Property Type Description
$context Sstalle\php7cc\CompatibilityViolation\ContextInterface
$tokenCollection Sstalle\php7cc\Token\TokenCollection
$tokens

Public Methods

Method Description
getLevel ( )
initializeContext ( Sstalle\php7cc\CompatibilityViolation\ContextInterface $context )
setTokenCollection ( TokenCollection $tokenCollection )

Protected Methods

Method Description
addContextMessage ( string $text, PhpParser\Node $node )

Method Details

addContextMessage() protected method

protected addContextMessage ( string $text, PhpParser\Node $node )
$text string
$node PhpParser\Node

getLevel() public method

public getLevel ( )

initializeContext() public method

public initializeContext ( Sstalle\php7cc\CompatibilityViolation\ContextInterface $context )
$context Sstalle\php7cc\CompatibilityViolation\ContextInterface

setTokenCollection() public method

public setTokenCollection ( TokenCollection $tokenCollection )
$tokenCollection Sstalle\php7cc\Token\TokenCollection

Property Details

$context protected_oe property

protected ContextInterface,Sstalle\php7cc\CompatibilityViolation $context
return Sstalle\php7cc\CompatibilityViolation\ContextInterface

$tokenCollection protected_oe property

protected TokenCollection,Sstalle\php7cc\Token $tokenCollection
return Sstalle\php7cc\Token\TokenCollection

$tokens protected_oe property

protected $tokens