phplinter\Lint\BaseLint::__construct PHP Method

__construct() public method

----------------------------------------------------------------------+ __construct
public __construct ( $node, $config )
    public function __construct($node, $config)
    {
        $this->reports = array();
        $this->locals = array();
        $this->node = $node;
        $this->config = $config;
        $this->scope = -1;
        $this->branches = -1;
        $this->switch = false;
        $this->final_return = false;
        $dir = dirname(__FILE__);
        $this->globals = (require $dir . '/../globals.php');
        $this->uvars = (require $dir . '/../uservars.php');
        if ($this->config->report_on('S')) {
            $this->sec_1 = (require $dir . '/../Security/command_exection.php');
            $this->sec_2 = (require $dir . '/../Security/filesystem.php');
            $this->sec_3 = (require $dir . '/../Security/low_risk.php');
            $this->sec_4 = (require $dir . '/../Security/information_disclosure.php');
            $this->sec_5 = (require $dir . '/../Security/accept_callbacks.php');
        }
    }