phplinter\CLI::setReport PHP Метод

setReport() защищенный Метод

----------------------------------------------------------------------+
protected setReport ( )
    protected function setReport()
    {
        if ($this->config->check(OPT_REPORT)) {
            if ($this->config->check(OPT_HTML_REPORT)) {
                $this->reporter = new Report\Html($this->config);
            } else {
                $this->reporter = new Report\JSON($this->config);
            }
        } else {
            $this->reporter = new Report\Bash($this->config);
        }
        $err = $this->reporter->prepare();
        if ($err !== true) {
            $this->error($err);
        }
    }