/
githubmirror
/
magento2
Обзор
Документация
Войти
/
githubmirror
/
magento2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4-develop
lib/internal/Magento/Framework/DB/Query/BatchIteratorInterface.php
77 строк
2 KB
Alexandra Zota
ACP2E-4019: CE copyright updates for 2.4.9-beta1
22 окт 2025, 17:47
22 окт 2025, 17:47
1b769b7
Код
Авторство
О чём код?
<?php /** * Copyright 2017 Adobe * All Rights Reserved. */ 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(); }