class-any-of-schema.php
1 year ago
class-array-schema.php
1 year ago
class-boolean-schema.php
1 year ago
class-integer-schema.php
1 year ago
class-null-schema.php
1 year ago
class-number-schema.php
1 year ago
class-object-schema.php
1 year ago
class-one-of-schema.php
1 year ago
class-string-schema.php
1 year ago
class-null-schema.php
27 lines
| 1 | <?php |
| 2 | /** |
| 3 | * This file is part of the WooCommerce Email Editor package |
| 4 | * |
| 5 | * @package Automattic\WooCommerce\EmailEditor |
| 6 | */ |
| 7 | |
| 8 | declare( strict_types = 1 ); |
| 9 | namespace Automattic\WooCommerce\EmailEditor\Validator\Schema; |
| 10 | |
| 11 | use Automattic\WooCommerce\EmailEditor\Validator\Schema; |
| 12 | |
| 13 | /** |
| 14 | * Represents a schema for a null. |
| 15 | * See: https://developer.wordpress.org/rest-api/extending-the-rest-api/schema/#primitive-types |
| 16 | */ |
| 17 | class Null_Schema extends Schema { |
| 18 | /** |
| 19 | * Schema definition. |
| 20 | * |
| 21 | * @var array |
| 22 | */ |
| 23 | protected $schema = array( |
| 24 | 'type' => 'null', |
| 25 | ); |
| 26 | } |
| 27 |