Completed
Push — master ( 842c53...e59924 )
by Joachim
14:33
created

Site::getId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Loevgaard\DandomainFoundation\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
use Loevgaard\DandomainFoundation\Entity\Generated\SiteInterface;
7
use Loevgaard\DandomainFoundation\Entity\Generated\SiteTraits;
8
9
/**
10
 * @ORM\Entity()
11
 * @ORM\Table(name="loevgaard_dandomain_sites")
12
 */
13
class Site implements SiteInterface
14
{
15
    use SiteTraits;
16
17
    /**
18
     * @var int
19
     *
20
     * @ORM\Id
21
     * @ORM\GeneratedValue
22
     * @ORM\Column(type="integer")
23
     **/
24
    protected $id;
25
26
    /**
27
     * @var int
28
     *
29
     * @ORM\Column(type="integer", unique=true)
30
     */
31
    protected $externalId;
32
33
    /**
34
     * @var int|null
35
     *
36
     * @ORM\Column(nullable=true, type="integer")
37
     */
38
    protected $countryId;
39
40
    /**
41
     * @var string|null
42
     *
43
     * @ORM\Column(nullable=true, type="string", length=3)
44
     */
45
    protected $currencyCode;
46
47
    /**
48
     * @var string|null
49
     *
50
     * @ORM\Column(nullable=true, type="string", length=191)
51
     */
52
    protected $name;
53
54
    /**
55
     * @return int
56
     */
57
    public function getId(): int
58
    {
59
        return $this->id;
60
    }
61
62
    /**
63
     * @param int $id
64
     * @return SiteInterface
65
     */
66
    public function setId($id)
67
    {
68
        $this->id = $id;
69
        return $this;
70
    }
71
72
    /**
73
     * @return int
74
     */
75
    public function getExternalId(): int
76
    {
77
        return $this->externalId;
78
    }
79
80
    /**
81
     * @param int $externalId
82
     * @return SiteInterface
83
     */
84
    public function setExternalId($externalId)
85
    {
86
        $this->externalId = $externalId;
87
        return $this;
88
    }
89
90
    /**
91
     * @return int|null
92
     */
93
    public function getCountryId()
94
    {
95
        return $this->countryId;
96
    }
97
98
    /**
99
     * @param int|null $countryId
100
     * @return SiteInterface
101
     */
102
    public function setCountryId($countryId)
103
    {
104
        $this->countryId = $countryId;
105
        return $this;
106
    }
107
108
    /**
109
     * @return null|string
110
     */
111
    public function getCurrencyCode()
112
    {
113
        return $this->currencyCode;
114
    }
115
116
    /**
117
     * @param null|string $currencyCode
118
     * @return SiteInterface
119
     */
120
    public function setCurrencyCode($currencyCode)
121
    {
122
        $this->currencyCode = $currencyCode;
123
        return $this;
124
    }
125
126
    /**
127
     * @return null|string
128
     */
129
    public function getName()
130
    {
131
        return $this->name;
132
    }
133
134
    /**
135
     * @param null|string $name
136
     * @return SiteInterface
137
     */
138
    public function setName($name)
139
    {
140
        $this->name = $name;
141
        return $this;
142
    }
143
}
144