From bd54bec595609f3502004163d41c555bfd79672d Mon Sep 17 00:00:00 2001 From: msquare Date: Fri, 18 Nov 2016 08:20:17 +0100 Subject: add ValidationResult to namespace --- includes/model/ValidationResult.php | 42 +++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 includes/model/ValidationResult.php (limited to 'includes/model/ValidationResult.php') diff --git a/includes/model/ValidationResult.php b/includes/model/ValidationResult.php new file mode 100644 index 00000000..0fc24161 --- /dev/null +++ b/includes/model/ValidationResult.php @@ -0,0 +1,42 @@ +valid = $valid; + $this->value = $value; + } + + /** + * Is the value valid? + */ + public function isValid() { + return $this->valid; + } + + /** + * The parsed/validated value. + */ + public function getValue() { + return $this->value; + } +} +?> \ No newline at end of file -- cgit v1.2.3-54-g00ecf