Scriptlog Docs

Scriptlog Documentation

Code reference for the Scriptlog codebase

User Tools

Site Tools


scriptlog:lib:validator:compositevalidator

Differences

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

Link to this comparison view

Next revision
Previous revision
scriptlog:lib:validator:compositevalidator [2026/09/26 09:09] – admin adminscriptlog:lib:validator:compositevalidator [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 (1) ======= ======= Properties (1) =======
  
-  ^ Visibility ^ Type ^ Name ^ Default ^ Line ^ +^ Visibility ^ Type ^ Name ^ Default ^ Line ^ 
-  | ''private'' | ''(untyped)'' | ''$validators'' | ''[];'' | 24 |+| ''private'' | ''(untyped)'' | ''$validators'' | ''[]'' | 24 |
  
 ======= Methods (3) ======= ======= Methods (3) =======
  
-  ^ Visibility ^ Method ^ Summary ^ Line ^ +^ Visibility ^ Method ^ Summary ^ Line ^ 
-  | public | ''add()'' | Register a validator callable. | 32 | +| public | ''add()'' | Register a validator callable. | 32 | 
-  | public | ''validate()'' | Run all registered validators and merge results. | 44 | +| public | ''validate()'' | Run all registered validators and merge results. | 44 | 
-  | public | ''count()'' | Return the number of registered validators. | 62 |+| public | ''count()'' | Return the number of registered validators. | 62 |
  
  
Line 53: Line 53:
 Register a validator callable. Register a validator callable.
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$validator'' | ''callable'' | //required// | Receives PostRequestDto, returns ValidationResult |+|  ''$validator'' |  ''callable'' |  //required// |  Receives PostRequestDto, returns ValidationResult |
  
 **Returns:** ''(none declared)'' — self **Returns:** ''(none declared)'' — self
Line 69: Line 69:
 Run all registered validators and merge results. Run all registered validators and merge results.
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$dto'' | [[scriptlog:lib:dto:postrequestdto|''PostRequestDto'']] | //required// | //none// |+|  ''$dto'' |  [[scriptlog:lib:dto:postrequestdto|''PostRequestDto'']] |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' — ValidationResult **Returns:** ''(none declared)'' — ValidationResult
Line 91: Line 91:
 ======= Imports ======= ======= Imports =======
  
-  ^ Alias ^ Fully-qualified name ^ +^ Alias ^ Fully-qualified name ^ 
-  | ''PostRequestDto'' | [[scriptlog:lib:dto:postrequestdto|''Scriptlog\Dto\PostRequestDto'']] |+| ''PostRequestDto'' | [[scriptlog:lib:dto:postrequestdto|''Scriptlog\Dto\PostRequestDto'']] |
  
  
scriptlog/lib/validator/compositevalidator.1790413761.txt.gz · Last modified: by admin