PHP Trait Phan\Analysis\Analyzable

Show file Open project: etsy/phan

Public Methods

Method Description
analyze ( Context $context, CodeBase $code_base ) : Context
getNode ( ) : ast\Node
hasNode ( ) : boolean
setNode ( ast\Node $node )

Method Details

analyze() public method

public analyze ( Context $context, CodeBase $code_base ) : Context
$context Phan\Language\Context
$code_base Phan\CodeBase
return Phan\Language\Context Analyze the node associated with this object in the given context

getNode() public method

public getNode ( ) : ast\Node
return ast\Node The AST node associated with this object

hasNode() public method

public hasNode ( ) : boolean
return boolean True if we have a node defined on this object

setNode() public method

public setNode ( ast\Node $node )
$node ast\Node The AST Node defining this object. We keep a reference to this so that we can come to it and