MetaFox

UserRelationRule
in package
implements Rule, DataAwareRule

Class UserRelationRule.

Table of Contents

Interfaces

Rule
DataAwareRule

Properties

$attribute  : string
$data  : array<string|int, mixed>

Methods

message()  : string
passes()  : bool
setData()  : $this
Set the data under validation.

Properties

Methods

passes()

public passes(mixed $attribute, mixed $value) : bool
Parameters
$attribute : mixed
$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

        
On this page

Search results