Mental Space

ValidationFactory
in package

FinalYes

Validation factory.

Table of Contents

Methods

createValidationResult()  : ValidationResult
Create validation result from array with errors.
createValidator()  : Validator
Create validator.

Methods

createValidationResult()

Create validation result from array with errors.

public createValidationResult(array<string|int, mixed> $errors) : ValidationResult
Parameters
$errors : array<string|int, mixed>

The errors

Return values
ValidationResult

The result

createValidator()

Create validator.

public createValidator() : Validator
Return values
Validator

The validator


        
On this page

Search results