summaryrefslogtreecommitdiff
path: root/includes/model/ValidationResult.php
diff options
context:
space:
mode:
authorBot <bot@myigel.name>2017-01-03 03:22:48 +0100
committerIgor Scheller <igor.scheller@igorshp.de>2017-01-03 03:22:48 +0100
commit356b2582f3e6a43ecf2607acad4a7fe0b37f659a (patch)
treee02c9214b23a0b9ec33aa725db962d565bd30a82 /includes/model/ValidationResult.php
parentd71e7bbfad2f07f82df0c515608996d250fd4182 (diff)
PPHDoc, formatting, fixes, cleanup
Diffstat (limited to 'includes/model/ValidationResult.php')
-rw-r--r--includes/model/ValidationResult.php14
1 files changed, 8 insertions, 6 deletions
diff --git a/includes/model/ValidationResult.php b/includes/model/ValidationResult.php
index b08e9d31..7f88b432 100644
--- a/includes/model/ValidationResult.php
+++ b/includes/model/ValidationResult.php
@@ -8,17 +8,15 @@ namespace Engelsystem;
*/
class ValidationResult
{
+ /** @var bool */
private $valid;
+ /** @var mixed */
private $value;
/**
- * Constructor.
- *
- * @param boolean $valid
- * Is the value valid?
- * @param * $value
- * The validated value
+ * @param boolean $valid Is the value valid?
+ * @param mixed $value The validated value
*/
public function __construct($valid, $value)
{
@@ -28,6 +26,8 @@ class ValidationResult
/**
* Is the value valid?
+ *
+ * @return bool
*/
public function isValid()
{
@@ -36,6 +36,8 @@ class ValidationResult
/**
* The parsed/validated value.
+ *
+ * @return mixed
*/
public function getValue()
{