Total Complexity | 7 |
Total Lines | 58 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | class ObjectEntry |
||
22 | { |
||
23 | /** |
||
24 | * @ORM\Id() |
||
25 | * @ORM\Column(type="uuid") |
||
26 | * @ORM\GeneratedValue(strategy="CUSTOM") |
||
27 | * @ORM\CustomIdGenerator(class=UuidGenerator::class) |
||
28 | */ |
||
29 | protected UuidInterface $id; |
||
30 | |||
31 | /** |
||
32 | * @ORM\Column(type="string", name="`key`", options={"collation": "utf8mb4_bin", "charset": "utf8mb4"}) |
||
33 | */ |
||
34 | protected string $key; |
||
35 | |||
36 | /** |
||
37 | * @ORM\Column(type="datetime", columnDefinition="timestamp not null") |
||
38 | */ |
||
39 | protected DateTimeInterface $createdAt; |
||
40 | |||
41 | /** |
||
42 | * @ORM\Column(type="json", name="`value`", nullable=true) |
||
43 | */ |
||
44 | protected $value; |
||
45 | |||
46 | 1 | public function getId(): UuidInterface |
|
47 | { |
||
48 | 1 | return $this->id; |
|
49 | } |
||
50 | |||
51 | 1 | public function getKey(): string |
|
52 | { |
||
53 | 1 | return $this->key; |
|
54 | } |
||
55 | |||
56 | 11 | public function setKey(string $key): void |
|
57 | { |
||
58 | 11 | $this->key = $key; |
|
59 | 11 | } |
|
60 | |||
61 | 1 | public function getCreatedAt(): DateTimeInterface |
|
64 | } |
||
65 | |||
66 | 11 | public function setCreatedAt(DateTimeInterface $createdAt): void |
|
67 | { |
||
68 | 11 | $this->createdAt = $createdAt; |
|
69 | 11 | } |
|
70 | |||
71 | 8 | public function getValue() |
|
72 | { |
||
73 | 8 | return $this->value; |
|
74 | } |
||
75 | |||
76 | 11 | public function setValue($value): void |
|
79 | 11 | } |
|
80 | } |
||
81 |