Input validation. A validator inspects a request payload and returns a validation result; it does not mutate the payload and does not throw for user error.
| Kind | Modifier | Type | Methods | Props | Consts | LOC | Summary |
|---|---|---|---|---|---|---|---|
class | ''CompositeValidator'' | 3 | 1 | 0 | 46 | Aggregate validator that runs multiple sub-validators. | |
class | ''FileUploadValidator'' | 1 | 0 | 0 | 55 | Validates uploaded file data. | |
class | ''PostValidator'' | 1 | 1 | 0 | 58 | Validates post form field values. | |
class | ''ProtectedPostValidator'' | 1 | 0 | 0 | 30 | Validates password for protected posts. | |
class | ''ValidationResult'' | 7 | 2 | 0 | 88 | Value object carrying validation result. |
| File | Types | Lines | LOC | Namespace | Strict |
|---|---|---|---|---|---|
lib/validator/CompositeValidator.php | CompositeValidator | 67 | 162 | Scriptlog\Validator | no |
lib/validator/FileUploadValidator.php | FileUploadValidator | 75 | 269 | Scriptlog\Validator | no |
lib/validator/PostValidator.php | PostValidator | 79 | 306 | Scriptlog\Validator | no |
lib/validator/ProtectedPostValidator.php | ProtectedPostValidator | 51 | 148 | Scriptlog\Validator | no |
lib/validator/ValidationResult.php | ValidationResult | 107 | 254 | Scriptlog\Validator | no |
Generated by 'tools/gendoc'.