Automattic\WooCommerce\EmailEditor\Validator\Schema

Object_Schema::propertiespublicWC 1.0

Set the required properties of the object.

Method of the class: Object_Schema{}

No Hooks.

Returns

null. Nothing (null).

Usage

$Object_Schema = new Object_Schema();
$Object_Schema->properties( $properties ): self;
$properties(array) (required)
.

Object_Schema::properties() code WC 10.5.0

public function properties( array $properties ): self {
	return $this->update_schema_property(
		'properties',
		array_map(
			function ( Schema $property ) {
				return $property->to_array();
			},
			$properties
		)
	);
}