Interface Guzzle\Service\Description\ValidatorInterface

Implemented byGuzzle\Service\Description\SchemaValidator

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

Public Methods

Hide inherited methods

MethodDescriptionDefined By
getErrors() Get validation errors encountered while validating Guzzle\Service\Description\ValidatorInterface
validate() 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. Guzzle\Service\Description\ValidatorInterface

Method Details

getErrors() public abstract method

Get validation errors encountered while validating

public abstract array getErrors ( )
validate() public abstract method

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.

public abstract bool validate ( Guzzle\Service\Description\Parameter $param, &$value )
$param Guzzle\Service\Description\Parameter

Schema that is being validated against the value

$value mixed

Value to validate and process. The value may change during this process.

return bool

Returns true if the input data is valid for the schema