Neuron-PHP

Base
in package
implements IValidator

AbstractYes

Validator base class.

Table of Contents

Interfaces

IValidator
Core validator interface for the Neuron validation system.

Methods

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

Methods

__construct()

public __construct() : mixed

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.

protected abstract validate(mixed $value) : bool
Parameters
$value : mixed
Return values
bool

        
On this page

Search results