Scriptlog Docs

Scriptlog Documentation

Code reference for the Scriptlog codebase

User Tools

Site Tools


scriptlog:lib:validator:validationresult

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
scriptlog:lib:validator:validationresult [2026/09/26 09:09] – admin adminscriptlog:lib:validator:validationresult [2026/09/26 09:34] (current) – admin admin
Line 15: Line 15:
 ======= Docblock Metadata ======= ======= Docblock Metadata =======
  
-  ^ Tag ^ Value ^ +^ Tag ^ Value ^ 
-  | ''@category'' | Validator | +| ''@category'' | Validator | 
-  | ''@author'' | M.Noermoehammad | +| ''@author'' | M.Noermoehammad | 
-  | ''@license'' | MIT | +| ''@license'' | MIT | 
-  | ''@version'' | 1.0 | +| ''@version'' | 1.0 | 
-  | ''@since'' | Since Release 1.0 |+| ''@since'' | Since Release 1.0 |
  
 ======= Inheritance ======= ======= Inheritance =======
Line 32: Line 32:
 ======= Properties (2) ======= ======= Properties (2) =======
  
-  ^ Visibility ^ Type ^ Name ^ Default ^ Line ^ +^ Visibility ^ Type ^ Name ^ Default ^ Line ^ 
-  | ''private'' | ''(untyped)'' | ''$errors'' | ''[];'' | 22 | +| ''private'' | ''(untyped)'' | ''$errors'' | ''[]'' | 22 | 
-  | ''private'' | ''(untyped)'' | ''$valid'' | ''true;'' | 25 |+| ''private'' | ''(untyped)'' | ''$valid'' | ''true'' | 25 |
  
 ======= Methods (7) ======= ======= Methods (7) =======
  
-  ^ Visibility ^ Method ^ Summary ^ Line ^ +^ Visibility ^ Method ^ Summary ^ Line ^ 
-  | public | ''addError()'' | Add a single error message. | 33 | +| public | ''addError()'' | Add a single error message. | 33 | 
-  | public | ''merge()'' | Merge another ValidationResult into this one. | 46 | +| public | ''merge()'' | Merge another ValidationResult into this one. | 46 | 
-  | public | ''isValid()'' | Whether validation passed. | 59 | +| public | ''isValid()'' | Whether validation passed. | 59 | 
-  | public | ''getErrors()'' | Return all error messages. | 69 | +| public | ''getErrors()'' | Return all error messages. | 69 | 
-  | public static | ''success()'' | Factory: successful validation. | 79 | +| public static | ''success()'' | Factory: successful validation. | 79 | 
-  | public static | ''failure()'' | Factory: failed validation with one message. | 90 | +| public static | ''failure()'' | Factory: failed validation with one message. | 90 | 
-  | public | ''hasErrors()'' | Whether there are any errors. | 102 |+| public | ''hasErrors()'' | Whether there are any errors. | 102 |
  
  
Line 58: Line 58:
 Add a single error message. Add a single error message.
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$message'' | ''(untyped)'' | //required// | //none// |+|  ''$message'' |  ''(untyped)'' |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' — self **Returns:** ''(none declared)'' — self
Line 74: Line 74:
 Merge another ValidationResult into this one. Merge another ValidationResult into this one.
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$other'' | [[scriptlog:lib:validator:validationresult|''ValidationResult'']] | //required// | //none// |+|  ''$other'' |  [[scriptlog:lib:validator:validationresult|''ValidationResult'']] |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' — self **Returns:** ''(none declared)'' — self
Line 135: Line 135:
 Factory: failed validation with one message. Factory: failed validation with one message.
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$message'' | ''(untyped)'' | //required// | //none// |+|  ''$message'' |  ''(untyped)'' |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' — self **Returns:** ''(none declared)'' — self
scriptlog/lib/validator/validationresult.1790413761.txt.gz · Last modified: by admin