MetaFox

PaginationLimitRule
in package
implements Rule

Class PaginationLimitRule.

Table of Contents

Interfaces

Rule

Properties

$max  : int
$min  : int

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>|null

passes()

public passes(mixed $attribute, mixed $value) : bool
Parameters
$attribute : mixed
$value : mixed
Tags
SuppressWarnings

(PHPMD.UnusedFormalParameter)

Return values
bool

        
On this page

Search results