Automattic\WooCommerce\Vendor\GraphQL\Validator

SDLValidationContext::reportErrorpublicWC 1.0

Method of the class: SDLValidationContext{}

No Hooks.

Returns

null. Nothing (null).

Usage

$SDLValidationContext = new SDLValidationContext();
$SDLValidationContext->reportError( $error ): void;
$error(Error) (required)
.

SDLValidationContext::reportError() code WC 10.9.1

public function reportError(Error $error): void
{
    $this->errors[] = $error;
}