| Total Complexity | 8 |
| Total Lines | 80 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 6 | class ContentMeta |
||
| 7 | { |
||
| 8 | use HydratorTrait { |
||
| 9 | fromArray as private fromArrayTrait; |
||
| 10 | } |
||
| 11 | |||
| 12 | /** @var string */ |
||
| 13 | private $revisionId; |
||
| 14 | /** @var string */ |
||
| 15 | private $entryId; |
||
| 16 | /** @var string */ |
||
| 17 | private $contentType; |
||
| 18 | /** @var \DateTimeImmutable */ |
||
| 19 | private $createdAt; |
||
| 20 | /** @var string */ |
||
| 21 | private $createdBy; |
||
| 22 | /** @var \DateTimeImmutable */ |
||
| 23 | private $updatedAt; |
||
| 24 | /** @var string */ |
||
| 25 | private $updatedBy; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @return string |
||
| 29 | */ |
||
| 30 | public function getRevisionId(): string |
||
| 31 | { |
||
| 32 | return $this->revisionId; |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @return string |
||
| 37 | */ |
||
| 38 | public function getEntryId(): string |
||
| 39 | { |
||
| 40 | return $this->entryId; |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return string |
||
| 45 | */ |
||
| 46 | public function getContentType(): string |
||
| 47 | { |
||
| 48 | return $this->contentType; |
||
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @return \DateTimeImmutable |
||
| 53 | */ |
||
| 54 | public function getCreatedAt(): \DateTimeImmutable |
||
| 55 | { |
||
| 56 | return $this->createdAt; |
||
| 57 | } |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @return string |
||
| 61 | */ |
||
| 62 | public function getCreatedBy(): string |
||
| 63 | { |
||
| 64 | return $this->createdBy; |
||
| 65 | } |
||
| 66 | |||
| 67 | /** |
||
| 68 | * @return \DateTimeImmutable |
||
| 69 | */ |
||
| 70 | public function getUpdatedAt(): \DateTimeImmutable |
||
| 71 | { |
||
| 72 | return $this->updatedAt; |
||
| 73 | } |
||
| 74 | |||
| 75 | /** |
||
| 76 | * @return string |
||
| 77 | */ |
||
| 78 | public function getUpdatedBy(): string |
||
| 81 | } |
||
| 82 | |||
| 83 | public static function fromArray(array $data) |
||
| 86 | } |
||
| 87 | } |
||
| 88 |