CustomGenderRule
in package
implements
Rule, DataAwareRule
Class CustomGenderRule.
Table of Contents
Interfaces
- Rule
- DataAwareRule
Properties
- $data : array<string|int, mixed>
Methods
- message() : string
- passes() : bool
- setData() : $this
- Set the data under validation.
- checkExistGender() : mixed
Properties
$data
protected
array<string|int, mixed>
$data
= []
Methods
message()
public
message() : string
Return values
stringpasses()
public
passes(mixed $attribute, mixed $value) : bool
Parameters
- $attribute : mixed
- $value : mixed
Tags
Return values
boolsetData()
Set the data under validation.
public
setData(array<string|int, mixed> $data) : $this
Parameters
- $data : array<string|int, mixed>
Return values
$thischeckExistGender()
protected
checkExistGender(array<string|int, mixed> $params) : mixed
Parameters
- $params : array<string|int, mixed>