AllowInRule
in package
implements
Rule
Class AllowInRule.
Table of Contents
Interfaces
- Rule
Properties
Methods
- __construct() : mixed
- AllowInRule constructor.
- getAllows() : array<int, mixed>
- message() : string
- Get the validation error message.
- passes() : bool
- Determine if the validation rule passes.
Properties
$allows
protected
array<string|int, mixed>
$allows
$message
protected
string|null
$message
= null
Methods
__construct()
AllowInRule constructor.
public
__construct(array<int, mixed> $allows[, string|null $message = null ]) : mixed
Parameters
- $allows : array<int, mixed>
- $message : string|null = null
getAllows()
public
getAllows() : array<int, mixed>
Return values
array<int, mixed>message()
Get the validation error message.
public
message() : string
Return values
stringpasses()
Determine if the validation rule passes.
public
passes(string $attribute, mixed $value) : bool
Parameters
- $attribute : string
- $value : mixed