HEX
Server: Apache
System: Linux webd001.cluster127.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: mciraet (192513)
PHP: 8.2.31
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/mciraet/www/wp-content/plugins/wordpress-seo/src/bulk-editor/domain/updates/batch-limit.php
<?php

// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace Yoast\WP\SEO\Bulk_Editor\Domain\Updates;

/**
 * This class holds the rule for how many updates a single batch may contain.
 */
class Batch_Limit {

	/**
	 * The maximum number of updates in a single batch.
	 */
	public const MAX_ITEMS = 20;

	/**
	 * Whether the given number of updates is within the batch limit.
	 *
	 * @param int $count The number of updates in the batch.
	 *
	 * @return bool Whether the given number of updates is within the batch limit.
	 */
	public static function is_within_limit( int $count ): bool {
		return $count <= self::MAX_ITEMS;
	}
}