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