Total Complexity | 4 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 25% |
Changes | 0 |
1 | <?php |
||
14 | #[ORM\Entity(ConfigurationRepository::class)] |
||
15 | class Configuration extends AbstractModel |
||
16 | { |
||
17 | use HasDescription; |
||
18 | |||
19 | #[ORM\Column(type: 'text')] |
||
20 | private string $value = ''; |
||
21 | |||
22 | 3 | public function __construct( |
|
23 | #[ORM\Column(name: '`key`', type: 'string', length: 191, unique: true)] |
||
24 | private string $key = '' |
||
25 | ) { |
||
26 | 3 | } |
|
27 | |||
28 | /** |
||
29 | * Get key. |
||
30 | */ |
||
31 | public function getKey(): string |
||
32 | { |
||
33 | return $this->key; |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * Set value. |
||
38 | */ |
||
39 | public function setValue(string $value): void |
||
40 | { |
||
41 | $this->value = $value; |
||
42 | } |
||
43 | |||
44 | /** |
||
45 | * Get value. |
||
46 | */ |
||
47 | public function getValue(): string |
||
50 | } |
||
51 | } |
||
52 |