MetaFox

MetaFoxPasswordValidationRule
in package
implements Rule, DataAwareRule

Class MetaFoxPasswordValidationRule.

Table of Contents

Interfaces

Rule
DataAwareRule

Properties

$context  : User
$data  : array<string|int, mixed>

Methods

__construct()  : mixed
message()  : string
Get the validation error message.
passes()  : bool
Determine if the validation rule passes.
setData()  : $this
Set the data under validation.
validatePassword()  : mixed

Properties

Methods

passes()

Determine if the validation rule passes.

public passes(string $attribute, mixed $value) : bool
Parameters
$attribute : string
$value : mixed
Tags
SuppressWarnings

(PHPMD.UnusedFormalParameter)

Return values
bool

setData()

Set the data under validation.

public setData(array<string|int, mixed> $data) : $this
Parameters
$data : array<string|int, mixed>
Return values
$this

validatePassword()

private validatePassword(array<string|int, mixed> $params) : mixed
Parameters
$params : array<string|int, mixed>

        
On this page

Search results