phplinter\Linter::__construct PHP Метод

__construct() публичный Метод

----------------------------------------------------------------------+
public __construct ( $file, Config $config )
$config Config
    public function __construct($file, Config $config)
    {
        $this->config = $config;
        $this->file = $file;
        exec('php -l ' . escapeshellarg($file), $error, $code);
        if ($code === 0) {
            $this->tokens = Tokenizer::tokenize($file);
            $this->tcount = count($this->tokens);
            $this->score = 0;
            $this->ignore_next = array();
            $this->scope = array();
            $this->globals = (require dirname(__FILE__) . '/globals.php');
        } else {
            $this->score = false;
        }
        $this->report = array();
    }