'error message', * 'field2' => 'error message', * ] * * @return array */ public function getErrors(): array; //-------------------------------------------------------------------- /** * Sets the error for a specific field. Used by custom validation methods. * * @param string $alias * @param string $error * * @return \CodeIgniter\Validation\ValidationInterface */ public function setError(string $alias, string $error): ValidationInterface; //-------------------------------------------------------------------- // Misc //-------------------------------------------------------------------- /** * Resets the class to a blank slate. Should be called whenever * you need to process more than one array. * * @return \CodeIgniter\Validation\ValidationInterface */ public function reset(): ValidationInterface; //-------------------------------------------------------------------- }