Automattic\WooCommerce\EmailEditor\Validator\Schema

Any_Of_Schema::__constructpublicWC 1.0

Any_Of_Schema constructor.

Method of the class: Any_Of_Schema{}

No Hooks.

Returns

null. Nothing (null).

Usage

$Any_Of_Schema = new Any_Of_Schema();
$Any_Of_Schema->__construct( $schemas );
$schemas(Schema[]) (required)
List of schemas.

Any_Of_Schema::__construct() code WC 10.5.0

public function __construct(
	array $schemas
) {
	foreach ( $schemas as $schema ) {
		$this->schema['anyOf'][] = $schema->to_array();
	}
}