Automattic\WooCommerce\EmailEditor\Validator\Schema
Array_Schema::maxItems
Sets the maximum number of items in the array.
Method of the class: Array_Schema{}
No Hooks.
Returns
null. Nothing (null).
Usage
$Array_Schema = new Array_Schema(); $Array_Schema->maxItems( $value ): self;
- $value(int) (required)
- Maximum number of items in the array.
Array_Schema::maxItems() Array Schema::maxItems code WC 10.5.0
public function maxItems( int $value ): self {
return $this->update_schema_property( 'maxItems', $value );
}