Phan\BlockAnalysisVisitor::__construct PHP Method

__construct() public method

public __construct ( CodeBase $code_base, Context $context, ast\Node $parent_node = null, integer $depth )
$code_base CodeBase The code base within which we're operating
$context Phan\Language\Context The context of the parser at the node for which we'd like to determine a type
$parent_node ast\Node The parent of the node being analyzed
$depth integer The depth of the node being analyzed in the AST
    public function __construct(CodeBase $code_base, Context $context, Node $parent_node = null, int $depth = 0)
    {
        parent::__construct($code_base, $context);
        $this->parent_node = $parent_node;
        $this->depth = $depth;
    }

Same methods

BlockAnalysisVisitor::__construct ( CodeBase $code_base, Context $context, ast\Node $parent_node = null, integer $depth )