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.
| Tag | Value |
|---|---|
@category | Validator |
@author | M.Noermoehammad |
@license | MIT |
@version | 1.0 |
@since | Since Release 1.0 |
No parent, interface or trait. This is a root type.
None.
None declared.
| Visibility | Method | Summary | Line |
|---|---|---|---|
| public | validate() | Validate the password for a protected post. | 29 |
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
| Alias | Fully-qualified name |
|---|---|
PostRequestDto | ''Scriptlog\Dto\PostRequestDto'' |
This page is generated from source by 'tools/gendoc'. Edits will be overwritten.