MetaFox

AllowInRule
in package
implements Rule

Class AllowInRule.

Table of Contents

Interfaces

Rule

Properties

$allows  : array<string|int, mixed>
$message  : string|null

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

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
string

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

        
On this page

Search results