aboutsummaryrefslogtreecommitdiff
path: root/src/model/entities/AppMetadata.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/model/entities/AppMetadata.php')
-rw-r--r--src/model/entities/AppMetadata.php46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/model/entities/AppMetadata.php b/src/model/entities/AppMetadata.php
new file mode 100644
index 0000000..ae42ad9
--- /dev/null
+++ b/src/model/entities/AppMetadata.php
@@ -0,0 +1,46 @@
1<?php
2// src/model/entities/AppMetadata.php
3
4// comme dans AppMode, prévoir d'ajouter des champs "since" et "by" (qui a changé quoi quel jour?)
5
6declare(strict_types=1);
7
8namespace App\Entity;
9
10use Doctrine\ORM\Mapping as ORM;
11
12#[ORM\Entity]
13#[ORM\Table(name: TABLE_PREFIX . "app_metadata")]
14class AppMetadata
15{
16 #[ORM\Id]
17 #[ORM\Column(type: "string", length: 100)]
18 private string $key_name;
19
20 #[ORM\Column(type: "string")]
21 private string $value;
22
23 public function __construct(string $key, string $value)
24 {
25 $this->key_name = $key;
26 $this->value = $value;
27 }
28
29 public function getKey(): string
30 {
31 return $this->key_name;
32 }
33 public function getValue(): string
34 {
35 return $this->value;
36 }
37
38 public function setKey(string $key): void
39 {
40 $this->key_name = $key;
41 }
42 public function setValue(string $value): void
43 {
44 $this->value = $value;
45 }
46} \ No newline at end of file