File "class-boolean-schema.php"

Full Path: /home/romayxjt/public_html/wp-content/plugins/woocommerce/packages/email-editor/src/Validator/Schema/class-boolean-schema.php
File size: 566 bytes
MIME-type: text/x-php
Charset: utf-8

<?php
/**
 * This file is part of the WooCommerce Email Editor package
 *
 * @package Automattic\WooCommerce\EmailEditor
 */

declare( strict_types = 1 );
namespace Automattic\WooCommerce\EmailEditor\Validator\Schema;

use Automattic\WooCommerce\EmailEditor\Validator\Schema;

/**
 * Represents a schema for a boolean.
 * See: https://developer.wordpress.org/rest-api/extending-the-rest-api/schema/#primitive-types
 */
class Boolean_Schema extends Schema {
	/**
	 * Schema definition.
	 *
	 * @var array
	 */
	protected $schema = array(
		'type' => 'boolean',
	);
}