| 1 | <?php |
||
| 14 | class QueryReader implements ReaderInterface |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var ActiveQuery|null |
||
| 18 | */ |
||
| 19 | protected $query = null; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var null|\yii\db\BatchQueryResult |
||
| 23 | */ |
||
| 24 | protected $iterator = null; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @inheritdoc |
||
| 28 | * |
||
| 29 | * @param ActiveQuery $query |
||
| 30 | * @param int $pageSize |
||
| 31 | */ |
||
| 32 | 5 | public function __construct(ActiveQuery $query = null, $pageSize = self::DEFAULT_PAGE_SIZE) |
|
| 41 | |||
| 42 | /** |
||
| 43 | * @inheritdoc |
||
| 44 | */ |
||
| 45 | 5 | public function rewind() |
|
| 49 | |||
| 50 | /** |
||
| 51 | * @inheritdoc |
||
| 52 | */ |
||
| 53 | 5 | public function next() |
|
| 57 | |||
| 58 | /** |
||
| 59 | * @inheritdoc |
||
| 60 | */ |
||
| 61 | 5 | public function valid() |
|
| 65 | |||
| 66 | /** |
||
| 67 | * @inheritdoc |
||
| 68 | */ |
||
| 69 | 5 | public function current() |
|
| 73 | |||
| 74 | /** |
||
| 75 | * @inheritdoc |
||
| 76 | */ |
||
| 77 | public function key() |
||
| 81 | } |
||
| 82 |