| 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 string |
||
| 29 | */ |
||
| 30 | protected $blobId; |
||
| 31 | |||
| 32 | public function __construct(int $revision, string $blobId, \DateTime $time, string $identity = null) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return int |
||
| 42 | */ |
||
| 43 | public function getRevision(): int |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @return \DateTime |
||
| 50 | */ |
||
| 51 | public function getTime(): \DateTime |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @return string |
||
| 58 | */ |
||
| 59 | public function getIdentity(): ?string |
||
| 63 | |||
| 64 | /** |
||
| 65 | * @return string |
||
| 66 | */ |
||
| 67 | public function getBlobId(): string |
||
| 71 | |||
| 72 | public function getRecord(): array |
||
| 81 | |||
| 82 | public static function fromRecord(array $row): Synchronization |
||
| 96 | } |
||
| 97 |