| 1 | <?php |
||
| 12 | class StatsTrackingReporter implements PageImportReporter { |
||
| 13 | |||
| 14 | private $reporter; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var ImportStats |
||
| 18 | */ |
||
| 19 | private $stats; |
||
| 20 | |||
| 21 | 1 | public function __construct( PageImportReporter $reporter ) { |
|
| 25 | |||
| 26 | public function started( EntityPage $entityPage ) { |
||
| 29 | |||
| 30 | public function endedSuccessfully() { |
||
| 34 | |||
| 35 | public function endedWithError( Exception $ex ) { |
||
| 39 | |||
| 40 | public function stepStarted( string $message ) { |
||
| 43 | |||
| 44 | public function stepCompleted() { |
||
| 47 | |||
| 48 | 1 | public function getStats() { |
|
| 51 | |||
| 52 | } |