MetaFox

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

Methods

__construct()

public __construct(string $ruleExist[, string|null $message = null ]) : mixed
Parameters
$ruleExist : string
$message : string|null = null

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