Total Complexity | 7 |
Total Lines | 62 |
Duplicated Lines | 0 % |
Coverage | 71.43% |
Changes | 0 |
1 | <?php |
||
20 | class AssetMeta |
||
21 | { |
||
22 | use HydratorTrait { |
||
23 | fromArray as private fromArrayTrait; |
||
24 | } |
||
25 | |||
26 | /** @var \DateTimeImmutable */ |
||
27 | private $createdAt; |
||
28 | /** @var string */ |
||
29 | private $createdBy; |
||
30 | /** @var \DateTimeImmutable */ |
||
31 | private $updatedAt; |
||
32 | /** @var string */ |
||
33 | private $updatedBy; |
||
34 | |||
35 | /** |
||
36 | * @return \DateTimeImmutable |
||
37 | */ |
||
38 | 1 | public function getCreatedAt(): \DateTimeImmutable |
|
39 | { |
||
40 | 1 | return $this->createdAt; |
|
41 | } |
||
42 | |||
43 | /** |
||
44 | * @return string |
||
45 | */ |
||
46 | public function getCreatedBy(): string |
||
47 | { |
||
48 | return $this->createdBy; |
||
49 | } |
||
50 | |||
51 | /** |
||
52 | * @return \DateTimeImmutable |
||
53 | */ |
||
54 | 1 | public function getUpdatedAt(): \DateTimeImmutable |
|
55 | { |
||
56 | 1 | return $this->updatedAt; |
|
57 | } |
||
58 | |||
59 | /** |
||
60 | * @return string |
||
61 | */ |
||
62 | public function getUpdatedBy(): string |
||
65 | } |
||
66 | |||
67 | /** |
||
68 | * @param array $data |
||
69 | * @return AssetMeta |
||
70 | * @throws \Exception |
||
71 | */ |
||
72 | 5 | public static function fromArray(array $data) |
|
84 |