MailPoet\EmailEditor\Validator

Builder::one_of()public staticWC 1.0

Creates a schema that allows a value to match one of the given schemas.

Method of the class: Builder{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = Builder::one_of( $schemas ): One_Of_Schema;
$schemas(Schema[]) (required)
List of schemas.

Builder::one_of() code WC 9.8.1

public static function one_of( array $schemas ): One_Of_Schema {
	return new One_Of_Schema( $schemas );
}