scriptlog:lib:validator:protectedpostvalidator
Table of Contents
ProtectedPostValidator
Layer: Validator · Source: lib/validator/ProtectedPostValidator.php:21 (lines 21–50)
class ProtectedPostValidator
Validates password for protected posts.
Runs password strength checks when the DTO indicates a password-protected post. Passes validation silently for non-protected posts.
Docblock Metadata
| Tag | Value |
|---|---|
@category | Validator |
@author | M.Noermoehammad |
@license | MIT |
@version | 1.0 |
@since | Since Release 1.0 |
Inheritance
No parent, interface or trait. This is a root type.
Constants (0)
None.
Properties (0)
None declared.
Methods (1)
| Visibility | Method | Summary | Line |
|---|---|---|---|
| public | validate() | Validate the password for a protected post. | 29 |
validate()
public function validate(PostRequestDto $dto)
lines 29–49 (21)
Validate the password for a protected post.
| Parameter | Type | Default | Description |
|---|---|---|---|
$dto | ''PostRequestDto'' | required | none |
Returns: (none declared) — ValidationResult
Imports
| Alias | Fully-qualified name |
|---|---|
PostRequestDto | ''Scriptlog\Dto\PostRequestDto'' |
This page is generated from source by 'tools/gendoc'. Edits will be overwritten.
scriptlog/lib/validator/protectedpostvalidator.txt · Last modified: by admin
