Documentation

Numeric extends AbstractValidator
in package

Numeric validator class

Tags
category

Pop

author

Nick Sagona, III dev@nolainteractive.com

copyright

Copyright (c) 2009-2024 NOLA Interactive, LLC. (http://www.nolainteractive.com)

license

http://www.popphp.org/license New BSD License

version
4.0.0

Table of Contents

Properties

$input  : mixed
Input value to test
$message  : string|null
Validator message - The message provided when the validation fails
$results  : mixed
Validator results - Optional results to collect post-validation, would be something that was set by a custom validator in its "evaluate" method
$value  : mixed
Validator value to test against

Methods

__construct()  : mixed
Constructor
evaluate()  : bool
Method to evaluate the validator
getInput()  : mixed
GEt the validator input
getMessage()  : string|null
Get the validator default message
getResults()  : mixed
Get the validator results
getValue()  : mixed
Get the validator value
hasResults()  : bool
Has validator results
setInput()  : AbstractValidator
Set the validator input
setMessage()  : AbstractValidator
Set the validator condition
setValue()  : AbstractValidator
Set the validator value

Properties

$message

Validator message - The message provided when the validation fails

protected string|null $message = null

$results

Validator results - Optional results to collect post-validation, would be something that was set by a custom validator in its "evaluate" method

protected mixed $results = null

Methods

__construct()

Constructor

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

Instantiate the validator object

Parameters
$value : mixed = null
$message : string|null = null

evaluate()

Method to evaluate the validator

public evaluate([mixed $input = null ]) : bool
Parameters
$input : mixed = null
Return values
bool

getMessage()

Get the validator default message

public getMessage() : string|null
Return values
string|null

hasResults()

Has validator results

public hasResults() : bool
Return values
bool

        
On this page

Search results