AllowMaxFilesRule
in package
implements
Rule
Class ResourceNameRule.
Table of Contents
Interfaces
- Rule
Properties
- $maxNumber : int
Methods
- __construct() : mixed
- message() : string
- Get the validation error message.
- passes() : bool
- Determine if the validation rule passes.
Properties
$maxNumber
private
int
$maxNumber
Methods
__construct()
public
__construct([int $maxNumber = MetaFoxConstant::MAX_NUMBER_OF_FILES ]) : mixed
Parameters
- $maxNumber : int = MetaFoxConstant::MAX_NUMBER_OF_FILES
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