PaginationLimitRule
in package
implements
Rule
Class PaginationLimitRule.
Table of Contents
Interfaces
- Rule
Properties
Methods
- __construct() : mixed
- message() : string|array<string, mixed>|null
- Get the validation error message.
- passes() : bool
Properties
$max
private
int
$max
= \MetaFox\Platform\Support\Helper\Pagination::DEFAULT_MAX_ITEM_PER_PAGE
$min
private
int
$min
= \MetaFox\Platform\Support\Helper\Pagination::DEFAULT_MIN_ITEM_PER_PAGE
Methods
__construct()
public
__construct([int|null $min = null ][, int|null $max = null ]) : mixed
Parameters
- $min : int|null = null
- $max : int|null = null
message()
Get the validation error message.
public
message() : string|array<string, mixed>|null
Return values
string|array<string, mixed>|nullpasses()
public
passes(mixed $attribute, mixed $value) : bool
Parameters
- $attribute : mixed
- $value : mixed