MailPoet\EmailEditor\Validator\Schema

Array_Schema::maxItems()publicWC 1.0

Sets the maximum number of items in the array.

Method of the class: Array_Schema{}

No Hooks.

Return

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() code WC 9.8.1

public function maxItems( int $value ): self {
	return $this->update_schema_property( 'maxItems', $value );
}