Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
optometrists
/
cache
/
cache
/
cache
/
.wp-cli
/
wp-content
/
plugins
/
facebook-for-woocommerce
/
vendor
/
woocommerce
/
action-scheduler-job-framework
/
src
/
Utilities
:
BatchQueryOffset.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php declare( strict_types=1 ); namespace Automattic\WooCommerce\ActionSchedulerJobFramework\Utilities; /** * Trait BatchQueryOffset * * @since 1.0.0 */ trait BatchQueryOffset { use BatchSize; /** * Get the query offset based on a given batch number and the specified batch size. * * @param int $batch_number * * @return int */ protected function get_query_offset( int $batch_number ): int { return $this->get_batch_size() * ( $batch_number - 1 ); } }