Documentation

ValidatorInterface

Validator interface

Tags
category

Pop

author

Nick Sagona, III dev@noladev.com

copyright

Copyright (c) 2009-2025 NOLA Interactive, LLC.

license

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

version
4.5.0

Table of Contents

Methods

evaluate()  : bool
Evaluate
getDescription()  : string|null
Get the validator description
getInput()  : mixed
Get the validator input
getMessage()  : string|null
Get the validator default message
getName()  : string|null
Get the validator name
getResults()  : mixed
Get the validator results
getValue()  : mixed
Get the validator value
hasDescription()  : bool
Has validator description
hasInput()  : bool
Has validator input
hasMessage()  : bool
Has validator message
hasName()  : bool
Has validator name
hasResults()  : bool
Has validator results
hasValue()  : bool
Has validator value
setDescription()  : static
Set the validator description
setInput()  : ValidatorInterface
Set the validator input
setMessage()  : ValidatorInterface
Set the validator default message
setName()  : static
Set the validator name
setValue()  : ValidatorInterface
Set the validator value

Methods

evaluate()

Evaluate

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

getDescription()

Get the validator description

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

getMessage()

Get the validator default message

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

getName()

Get the validator name

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

hasDescription()

Has validator description

public hasDescription() : bool
Return values
bool

hasMessage()

Has validator message

public hasMessage() : bool
Return values
bool

hasResults()

Has validator results

public hasResults() : bool
Return values
bool

setDescription()

Set the validator description

public setDescription([string|null $description = null ]) : static
Parameters
$description : string|null = null
Return values
static

setName()

Set the validator name

public setName([string|null $name = null ]) : static
Parameters
$name : string|null = null
Return values
static

        
On this page

Search results