public function getAll($clear = false)
    {
        if ($clear) {
            $errors = $this->errors;
            $this->clearAll();

            return $errors;
        }
        return $this->errors;
    }