Neuron-PHP

IsPositive extends Base
in package

Requires a positive number.

Table of Contents

Methods

__construct()  : mixed
isValid()  : bool
Returns true if validation is successful
validate()  : bool
Abstract method to be implemented by all validators.

Methods

isValid()

Returns true if validation is successful

public isValid(mixed $value) : bool
Parameters
$value : mixed
Return values
bool

validate()

Abstract method to be implemented by all validators.

public validate(mixed $value) : bool
Parameters
$value : mixed
Return values
bool

        
On this page

Search results