Phan\Analysis\ScopeVisitor::__construct PHP Method

__construct() public method

public __construct ( CodeBase $code_base, Context $context )
$code_base Phan\CodeBase The global code base holding all state
$context Phan\Language\Context The context of the parser at the node for which we'd like to determine a type
    public function __construct(CodeBase $code_base, Context $context)
    {
        parent::__construct($code_base, $context);
    }

Usage Example

Example #1
0
 /**
  * @param Context $context
  * The context of the parser at the node for which we'd
  * like to determine a type
  *
  * @param CodeBase $code_base
  * The global code base in which we store all
  * state
  */
 public function __construct(CodeBase $code_base, Context $context)
 {
     parent::__construct($code_base, $context);
 }