ExistIfGreaterThanZero
in package
implements
Rule
Class ExistIfGreaterThanZero.
Table of Contents
Interfaces
- Rule
Properties
- $attribute : string
- $message : string|null
- $ruleExist : string
Methods
- __construct() : mixed
- message() : string
- Get the validation error message.
- passes() : bool
- Determine if the validation rule passes.
Properties
$attribute
private
string
$attribute
$message
private
string|null
$message
$ruleExist
private
string
$ruleExist
Methods
__construct()
public
__construct(string $ruleExist[, string|null $message = null ]) : mixed
Parameters
- $ruleExist : string
- $message : string|null = null
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