![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/magento/framework/DB/Query/ |
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ declare(strict_types=1); namespace Magento\Framework\DB\Query; /** * The batch queries iterator interface * * @api */ interface BatchIteratorInterface extends \Iterator { /** * Constant which determine strategy to create iterator which will to process * range field eg. entity_id with unique values. */ public const UNIQUE_FIELD_ITERATOR = "unique"; /** * Constant which determine strategy to create iterator which will to process * range field with non-unique values. */ public const NON_UNIQUE_FIELD_ITERATOR = "non_unqiue"; /** * Return the current element * * If we don't have sub-select we should create and remember it. * * @return \Magento\Framework\DB\Select */ #[\ReturnTypeWillChange] public function current(); /** * Return the key of the current element * * Can return the number of the current sub-select in the iteration. * * @return int */ #[\ReturnTypeWillChange] public function key(); /** * Move forward to next sub-select * * Retrieve the next sub-select and move cursor to the next element. * Checks that the count of elements more than the sum of limit and offset. * * @return \Magento\Framework\DB\Select */ #[\ReturnTypeWillChange] public function next(); /** * Rewind the BatchRangeIterator to the first element. * * Allows to start iteration from the beginning. * * @return void */ #[\ReturnTypeWillChange] public function rewind(); /** * Checks if current position is valid * * @return bool */ #[\ReturnTypeWillChange] public function valid(); }