| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 41 | public function import(Traversable $iterator) |
||
| 42 | { |
||
| 43 | $chunkIterator = $this->getBuilder()->build(ChunkedIterator::class, $iterator, $this->batchSize); |
||
| 44 | foreach ($chunkIterator as $rows) { |
||
| 45 | list ($sql, $bind) = $this->dialect->getInsertSyntax($this->table, $rows); |
||
| 46 | $this->table->getAdapter()->query($sql, $bind); |
||
| 47 | } |
||
| 48 | return $this->table; |
||
| 49 | } |
||
| 50 | } |
||
| 51 |