\Pop\ValidatorNotEmpty

Not empty validator class

Summary

Methods
Properties
Constants
__construct()
getValue()
getMessage()
getInput()
setValue()
setMessage()
setInput()
evaluate()
No public properties found
No constants found
No protected methods found
$value
$input
$message
N/A
No private methods found
No private properties found
N/A

Properties

$value

$value : mixed

Validator value to test against

Type

mixed

$input

$input : mixed

Input value to test

Type

mixed

$message

$message : string

Validator message

Type

string

Methods

__construct()

__construct(mixed  $value = null, string  $message = null) 

Constructor

Instantiate the validator object

Parameters

mixed $value
string $message

getValue()

getValue() : mixed

Get the validator value

Returns

mixed

getMessage()

getMessage() : boolean

Get the validator default message

Returns

boolean

getInput()

getInput() : mixed

GEt the validator input

Returns

mixed

setMessage()

setMessage(string  $msg = null) : \Pop\Validator\AbstractValidator

Set the validator condition

Parameters

string $msg

Returns

\Pop\Validator\AbstractValidator

setInput()

setInput(mixed  $input = null) : \Pop\Validator\AbstractValidator

Set the validator input

Parameters

mixed $input

Returns

\Pop\Validator\AbstractValidator

evaluate()

evaluate(mixed  $input = null) : boolean

Method to evaluate the validator

Parameters

mixed $input

Returns

boolean