This commit is contained in:
Eduardo Gulias Davis
2024-12-27 22:55:04 +01:00
parent 1ed7ade52c
commit f31e565efd
+8 -4
View File
@@ -6,22 +6,26 @@ interface Result
{
/**
* Is validation result valid?
*
*/
public function isValid() : bool;
public function isValid(): bool;
/**
* Is validation result invalid?
* Usually the inverse of isValid()
*
*/
public function isInvalid() : bool;
public function isInvalid(): bool;
/**
* Short description of the result, human readable.
*
*/
public function description() : string;
public function description(): string;
/**
* Code for user land to act upon.
*
*/
public function code() : int;
public function code(): int;
}