aboutsummaryrefslogtreecommitdiff
path: root/src/model/entities/AppMetadata.php
blob: ae42ad96ce2daef4063189dc6ca0e6c4326a58cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
// src/model/entities/AppMetadata.php

// comme dans AppMode, prévoir d'ajouter des champs "since" et "by" (qui a changé quoi quel jour?)

declare(strict_types=1);

namespace App\Entity;

use Doctrine\ORM\Mapping as ORM;

#[ORM\Entity]
#[ORM\Table(name: TABLE_PREFIX . "app_metadata")]
class AppMetadata
{
    #[ORM\Id]
    #[ORM\Column(type: "string", length: 100)]
    private string $key_name;

    #[ORM\Column(type: "string")]
    private string $value;

    public function __construct(string $key, string $value)
    {
        $this->key_name = $key;
        $this->value = $value;
    }

    public function getKey(): string
    {
    	return $this->key_name;
    }
    public function getValue(): string
    {
    	return $this->value;
    }

    public function setKey(string $key): void
    {
        $this->key_name = $key;
    }
    public function setValue(string $value): void
    {
        $this->value = $value;
    }
}