| 1 | <?php |
||
| 10 | class Synchronization |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var int |
||
| 14 | */ |
||
| 15 | protected $revision; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var \DateTime |
||
| 19 | */ |
||
| 20 | protected $time; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | protected $identity; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var Index |
||
| 29 | */ |
||
| 30 | protected $index; |
||
| 31 | |||
| 32 | public function __construct(int $revision, \DateTime $time, string $identity, Index $index = null) |
||
| 39 | |||
| 40 | public function getRevision(): int |
||
| 44 | |||
| 45 | public function getTime(): \DateTime |
||
| 49 | |||
| 50 | public function getIdentity(): string |
||
| 54 | |||
| 55 | public function getIndex(): ?Index |
||
| 59 | |||
| 60 | public function setIndex(Index $index): Synchronization |
||
| 68 | } |
||
| 69 |