Automattic\WooCommerce\EmailEditor\Validator\Schema

Any_Of_Schema::__constructpublicWC 1.0

Any_Of_Schema constructor.

Метод класса: Any_Of_Schema{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$Any_Of_Schema = new Any_Of_Schema();
$Any_Of_Schema->__construct( $schemas );
$schemas(Schema[]) (обязательный)
List of schemas.

Код Any_Of_Schema::__construct() WC 10.0.2

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