Automattic\WooCommerce\EmailEditor\Validator
Builder::one_of
Creates a schema that allows a value to match one of the given schemas.
Method of the class: Builder{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = Builder::one_of( $schemas ): One_Of_Schema;
- $schemas(Schema[]) (required)
- List of schemas.
Builder::one_of() Builder::one of code WC 10.5.0
public static function one_of( array $schemas ): One_Of_Schema {
return new One_Of_Schema( $schemas );
}