Passed
Pull Request — master (#134)
by Matt
04:51
created

Settings::setGravatarEmail()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace App\Entity;
4
5
use App\Repository\SettingsRepository;
6
use Doctrine\ORM\Mapping as ORM;
7
8
/**
9
 * @ORM\Entity(repositoryClass=SettingsRepository::class)
10
 */
11
class Settings
12
{
13
    /**
14
     * @ORM\Id
15
     * @ORM\GeneratedValue
16
     * @ORM\Column(type="integer")
17
     */
18
    private $id;
19
20
    /**
21
     * @ORM\Column(type="string", length=255, nullable=true)
22
     */
23
    private $siteTitle;
24
25
    /**
26
     * @ORM\Column(type="string", length=255, nullable=true)
27
     */
28
    private $siteSubtitle;
29
30
    /**
31
     * @ORM\Column(type="text", nullable=true)
32
     */
33
    private $siteAbout;
34
35
    /**
36
     * @ORM\Column(type="string", length=255, nullable=true)
37
     */
38
    private $twitterHandle;
39
40
    /**
41
     * @ORM\Column(type="string", length=1024, nullable=true)
42
     */
43
    private $gravatarEmail;
44
45
    public function getId(): ?int
46
    {
47
        return $this->id;
48
    }
49
50
    public function getSiteTitle(): ?string
51
    {
52
        return $this->siteTitle;
53
    }
54
55
    public function setSiteTitle(?string $siteTitle): self
56
    {
57
        $this->siteTitle = $siteTitle;
58
59
        return $this;
60
    }
61
62
    public function getSiteSubtitle(): ?string
63
    {
64
        return $this->siteSubtitle;
65
    }
66
67
    public function setSiteSubtitle(?string $siteSubtitle): self
68
    {
69
        $this->siteSubtitle = $siteSubtitle;
70
71
        return $this;
72
    }
73
74
    public function getSiteAbout(): ?string
75
    {
76
        return $this->siteAbout;
77
    }
78
79
    public function setSiteAbout(?string $siteAbout): self
80
    {
81
        $this->siteAbout = $siteAbout;
82
83
        return $this;
84
    }
85
86
    public function getTwitterHandle(): ?string
87
    {
88
        return $this->twitterHandle;
89
    }
90
91
    public function setTwitterHandle(?string $twitterHandle): self
92
    {
93
        $this->twitterHandle = $twitterHandle;
94
95
        return $this;
96
    }
97
98
    public function getGravatarEmail(): ?string
99
    {
100
        return $this->gravatarEmail;
101
    }
102
103
    public function setGravatarEmail(?string $gravatarEmail): self
104
    {
105
        $this->gravatarEmail = $gravatarEmail;
106
107
        return $this;
108
    }
109
}
110