1 | <?php |
||
12 | class IteratorImporter implements IteratorImporterInterface, BuilderAwareInterface |
||
13 | { |
||
14 | use BuilderTrait; |
||
15 | |||
16 | /** @var TableNodeInterface */ |
||
17 | private $table; |
||
18 | /** @var int */ |
||
19 | private $batchSize; |
||
20 | /** @var DialectInterface */ |
||
21 | private $dialect; |
||
22 | |||
23 | /** |
||
24 | * IteratorImporter constructor. |
||
25 | * |
||
26 | * @param TableNodeInterface $table |
||
27 | * @param int $batchSize |
||
28 | */ |
||
29 | public function __construct(TableNodeInterface $table, $batchSize = 100) |
||
35 | |||
36 | /** |
||
37 | * @param Traversable $iterator |
||
38 | * |
||
39 | * @return TableNodeInterface |
||
40 | */ |
||
41 | public function import(Traversable $iterator) |
||
50 | } |
||
51 |