1 | <?php |
||
8 | class Synchronization |
||
9 | { |
||
10 | /** |
||
11 | * @var int |
||
12 | */ |
||
13 | protected $revision; |
||
14 | |||
15 | /** |
||
16 | * @var \DateTime |
||
17 | */ |
||
18 | protected $time; |
||
19 | |||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $identity; |
||
24 | |||
25 | /** |
||
26 | * @var Index |
||
27 | */ |
||
28 | protected $index; |
||
29 | |||
30 | public function __construct(int $revision, \DateTime $time, string $identity, Index $index = null) |
||
37 | |||
38 | public function getRevision(): int |
||
42 | |||
43 | public function getTime(): \DateTime |
||
47 | |||
48 | public function getIdentity(): string |
||
52 | |||
53 | public function getIndex(): ?Index |
||
57 | |||
58 | public function setIndex(Index $index): Synchronization |
||
66 | |||
67 | public function toScalarArray(): array |
||
75 | |||
76 | public static function fromScalarArray(array $array, Index $index = null): Synchronization |
||
87 | } |
||
88 |