| 1 | <?php |
||
| 7 | class Synchronization |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var int |
||
| 11 | */ |
||
| 12 | protected $revision; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var \DateTime |
||
| 16 | */ |
||
| 17 | protected $time; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | protected $identity; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | protected $blobId; |
||
| 28 | |||
| 29 | public function __construct(int $revision, string $blobId, \DateTime $time, string $identity = null) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @return int |
||
| 39 | */ |
||
| 40 | public function getRevision(): int |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @return \DateTime |
||
| 47 | */ |
||
| 48 | public function getTime(): \DateTime |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @return string |
||
| 55 | */ |
||
| 56 | public function getIdentity() |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @return string |
||
| 63 | */ |
||
| 64 | public function getBlobId(): string |
||
| 68 | |||
| 69 | public function getRecord(): array |
||
| 78 | |||
| 79 | public static function fromRecord(array $row): Synchronization |
||
| 93 | } |
||
| 94 |