protected function debug($type, $mixed)
    {
        if ($this->config && $this->config['debugsEnabled']) {
            switch ($type) {
                case 'echo':
                    echo $mixed;
                    break;
                case 'print_r':
                    print_r($mixed);
                    break;
                case 'var_dump':
                    var_dump($mixed);
                    break;
            }
        }
    }