Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 4 |
|
0.00% |
0 / 3 |
CRAP | |
0.00% |
0 / 1 |
ImportHeader | |
0.00% |
0 / 4 |
|
0.00% |
0 / 3 |
12 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
getRevisions | |
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\Plain; |
4 | |
5 | use ArrayIterator; |
6 | use Flow\Import\IImportHeader; |
7 | use Flow\Import\IObjectRevision; |
8 | |
9 | class ImportHeader implements IImportHeader { |
10 | /** @var IObjectRevision[] */ |
11 | protected $revisions; |
12 | /** @var string */ |
13 | protected $objectKey; |
14 | |
15 | /** |
16 | * @param IObjectRevision[] $revisions |
17 | * @param string $objectKey |
18 | */ |
19 | public function __construct( array $revisions, $objectKey ) { |
20 | $this->revisions = $revisions; |
21 | $this->objectKey = $objectKey; |
22 | } |
23 | |
24 | public function getRevisions() { |
25 | return new ArrayIterator( $this->revisions ); |
26 | } |
27 | |
28 | public function getObjectKey() { |
29 | return $this->objectKey; |
30 | } |
31 | } |