Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 6 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| MovedImportPost | |
0.00% |
0 / 6 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| getRevisions | |
0.00% |
0 / 6 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace Flow\Import\LiquidThreadsApi; |
| 4 | |
| 5 | class MovedImportPost extends ImportPost { |
| 6 | public function getRevisions() { |
| 7 | $scriptUser = $this->importSource->getScriptUser(); |
| 8 | $factory = static function ( $data, $parent ) use ( $scriptUser ) { |
| 9 | return new MovedImportRevision( $data, $parent, $scriptUser ); |
| 10 | }; |
| 11 | $pageData = $this->importSource->getPageData( $this->pageId ); |
| 12 | |
| 13 | return new RevisionIterator( $pageData, $this, $factory ); |
| 14 | } |
| 15 | } |