1 | <?php |
||
12 | class PagesImporter { |
||
13 | |||
14 | private $importer; |
||
15 | private $statsReporter; |
||
16 | private $onAborted; |
||
17 | |||
18 | private $shouldStop = false; |
||
19 | |||
20 | 1 | public function __construct( PageImporter $importer, StatsReporter $statsReporter, callable $onAborted = null ) { |
|
25 | |||
26 | 1 | public function importPages( Iterator $entityPageIterator ) { |
|
39 | |||
40 | 1 | private function runImportLoop( Iterator $entityPageIterator ) { |
|
58 | |||
59 | public function stop() { |
||
62 | |||
63 | } |
||
64 | |||
65 |