| Total Complexity | 4 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | #[ORM\Entity] |
||
| 10 | #[UniqueEntity(fields: ['key'])] |
||
| 11 | class Setting { |
||
| 12 | |||
| 13 | #[ORM\Id] |
||
| 14 | #[ORM\Column(name: 'key', type: 'string', unique: true)] |
||
| 15 | #[Assert\NotBlank] |
||
| 16 | private ?string $key = null; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var mixed |
||
| 20 | */ |
||
| 21 | #[ORM\Column(type: 'object')] |
||
| 22 | private $value = null; |
||
| 23 | |||
| 24 | public function getKey(): string { |
||
| 26 | } |
||
| 27 | |||
| 28 | public function setKey(string $key): Setting { |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @return mixed |
||
| 35 | */ |
||
| 36 | public function getValue() { |
||
| 37 | return $this->value; |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return Setting |
||
| 42 | */ |
||
| 43 | public function setValue(mixed $value) { |
||
| 46 | } |
||
| 47 | } |