Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
| ImportSummary | |
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getObjectKey | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace Flow\Import\LiquidThreadsApi; |
| 4 | |
| 5 | use Flow\Import\IImportSummary; |
| 6 | use Flow\Import\ImportException; |
| 7 | |
| 8 | class ImportSummary extends PageRevisionedObject implements IImportSummary { |
| 9 | /** @var ImportSource */ |
| 10 | protected $source; |
| 11 | |
| 12 | /** |
| 13 | * @param array $apiResponse |
| 14 | * @param ImportSource $source |
| 15 | * @throws ImportException |
| 16 | */ |
| 17 | public function __construct( array $apiResponse, ImportSource $source ) { |
| 18 | parent::__construct( $source, $apiResponse['pageid'] ); |
| 19 | } |
| 20 | |
| 21 | public function getObjectKey() { |
| 22 | return $this->importSource->getObjectKey( 'summary_id', $this->pageId ); |
| 23 | } |
| 24 | } |