Settings   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 10
c 1
b 0
f 0
dl 0
loc 36
rs 10
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setSettingName() 0 5 1
A getSettingValue() 0 3 1
A getSettingName() 0 3 1
A setSettingValue() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace App\Entity;
6
7
use App\Entity\Traits\EntityIdTrait;
8
use Doctrine\ORM\Mapping as ORM;
9
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
10
11
/**
12
 * @ORM\Entity(repositoryClass="App\Repository\SettingsRepository")
13
 * @UniqueEntity("setting_name")
14
 */
15
class Settings
16
{
17
    use EntityIdTrait;
18
19
    /**
20
     * @ORM\Column(type="string", length=191, unique=true)
21
     */
22
    private ?string $setting_name;
23
24
    /**
25
     * @ORM\Column(type="text", nullable=true)
26
     */
27
    private ?string $setting_value;
28
29
    public function getSettingName(): ?string
30
    {
31
        return $this->setting_name;
32
    }
33
34
    public function setSettingName(string $setting_name): self
35
    {
36
        $this->setting_name = $setting_name;
37
38
        return $this;
39
    }
40
41
    public function getSettingValue(): ?string
42
    {
43
        return $this->setting_value;
44
    }
45
46
    public function setSettingValue(?string $setting_value): self
47
    {
48
        $this->setting_value = $setting_value;
49
50
        return $this;
51
    }
52
}
53