Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 8 |
|
0.00% |
0 / 5 |
CRAP | |
0.00% |
0 / 1 |
ObjectRevision | |
0.00% |
0 / 8 |
|
0.00% |
0 / 5 |
30 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 4 |
|
0.00% |
0 / 1 |
2 | |||
getText | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getTimestamp | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getAuthor | |
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 Flow\Import\IObjectRevision; |
6 | |
7 | class ObjectRevision implements IObjectRevision { |
8 | /** @var string */ |
9 | protected $text; |
10 | /** @var string */ |
11 | protected $timestamp; |
12 | /** @var string */ |
13 | protected $author; |
14 | /** @var string */ |
15 | protected $objectKey; |
16 | |
17 | /** |
18 | * @param string $text The content of the revision |
19 | * @param string $timestamp wfTimestamp() compatible creation timestamp |
20 | * @param string $author Name of the user that created the revision |
21 | * @param string $objectKey Unique key identifying this revision |
22 | */ |
23 | public function __construct( $text, $timestamp, $author, $objectKey ) { |
24 | $this->text = $text; |
25 | $this->timestamp = $timestamp; |
26 | $this->author = $author; |
27 | $this->objectKey = $objectKey; |
28 | } |
29 | |
30 | public function getText() { |
31 | return $this->text; |
32 | } |
33 | |
34 | public function getTimestamp() { |
35 | return $this->timestamp; |
36 | } |
37 | |
38 | public function getAuthor() { |
39 | return $this->author; |
40 | } |
41 | |
42 | public function getObjectKey() { |
43 | return $this->objectKey; |
44 | } |
45 | } |