Open Journal Systems  3.3.0
Guzzle\Service\Description\ValidatorInterface Interface Reference
Inheritance diagram for Guzzle\Service\Description\ValidatorInterface:
Guzzle\Service\Description\SchemaValidator

Public Member Functions

 getErrors ()
 
 validate (Parameter $param, &$value)
 

Detailed Description

Validator responsible for preparing and validating parameters against the parameter's schema

Definition at line 8 of file ValidatorInterface.php.

Member Function Documentation

◆ getErrors()

Guzzle\Service\Description\ValidatorInterface::getErrors ( )

Get validation errors encountered while validating

Returns
array

Implemented in Guzzle\Service\Description\SchemaValidator.

◆ validate()

Guzzle\Service\Description\ValidatorInterface::validate ( Parameter  $param,
$value 
)

Validate a value against the acceptable types, regular expressions, minimum, maximums, instanceOf, enums, etc Add default and static values to the passed in variable. If the validation completes successfully, the input must be run correctly through the matching schema's filters attribute.

Parameters
Parameter$paramSchema that is being validated against the value
mixed$valueValue to validate and process. The value may change during this process.
Returns
bool Returns true if the input data is valid for the schema

Implemented in Guzzle\Service\Description\SchemaValidator.


The documentation for this interface was generated from the following file: