public function errors($field = null, $errors = null, $overwrite = false)
    {
        deprecationWarning(
            get_called_class() . '::errors() is deprecated. ' .
            'Use setError()/getError() or setErrors()/getErrors() instead.'
        );
        if ($field === null) {
            return $this->getErrors();
        }

        if (is_string($field) && $errors === null) {
            return $this->getError($field);
        }

        if (!is_array($field)) {
            $field = [$field => $errors];
        }

        return $this->setErrors($field, $overwrite);
    }