Passed
Push — master ( 003b31...53bc6b )
by Anthony
01:51
created

AccessRight::getId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 0
1
<?php
2
3
namespace Ribs\RibsAdminBundle\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
/**
8
 * AccessRight
9
 *
10
 * @ORM\Table(name="access_right")
11
 * @ORM\Entity
12
 */
13
class AccessRight
14
{
15
    /**
16
     * @var integer
17
     *
18
     * @ORM\Column(name="id", type="integer", nullable=false, options={"unsigned"=true})
19
     * @ORM\Id
20
     * @ORM\GeneratedValue(strategy="IDENTITY")
21
     */
22
    private $id;
23
24
    /**
25
     * @var string
26
     *
27
     * @ORM\Column(name="guid", type="string", length=255, nullable=false)
28
     */
29
    private $guid;
30
31
    /**
32
     * @var string
33
     *
34
     * @ORM\Column(name="name", type="string", length=255, nullable=false)
35
     */
36
    private $name;
37
38
    /**
39
     * @var string
40
     *
41
     * @ORM\Column(name="access_rights", type="text", nullable=true)
42
     */
43
    private $accessRights;
44
45
    /**
46
     * @var \DateTime
47
     *
48
     * @ORM\Column(name="creation_date", type="date", nullable=true)
49
     */
50
    private $creationDate;
51
52
    /**
53
     * @var \DateTime
54
     *
55
     * @ORM\Column(name="update_date", type="date", nullable=true)
56
     */
57
    private $updateDate;
58
	
59
	/**
60
	 * @return int
61
	 */
62
	public function getId(): int
63
	{
64
		return $this->id;
65
	}
66
	
67
	/**
68
	 * @param int $id
69
	 */
70
	public function setId(int $id)
71
	{
72
		$this->id = $id;
73
	}
74
	
75
	/**
76
	 * @return string
77
	 */
78
	public function getGuid(): string
79
	{
80
		return $this->guid;
81
	}
82
	
83
	/**
84
	 * @param string $guid
85
	 */
86
	public function setGuid(string $guid)
87
	{
88
		$this->guid = $guid;
89
	}
90
	
91
	/**
92
	 * @return string
93
	 */
94
	public function getName(): string
95
	{
96
		return $this->name;
97
	}
98
	
99
	/**
100
	 * @param string $name
101
	 */
102
	public function setName(string $name)
103
	{
104
		$this->name = $name;
105
	}
106
	
107
	/**
108
	 * @return string
109
	 */
110
	public function getAccessRights(): string
111
	{
112
		return $this->accessRights;
113
	}
114
	
115
	/**
116
	 * @param string $accessRights
117
	 */
118
	public function setAccessRights(string $accessRights)
119
	{
120
		$this->accessRights = $accessRights;
121
	}
122
	
123
	/**
124
	 * @return \DateTime
125
	 */
126
	public function getCreationDate(): \DateTime
127
	{
128
		return $this->creationDate;
129
	}
130
	
131
	/**
132
	 * @param \DateTime $creationDate
133
	 */
134
	public function setCreationDate(\DateTime $creationDate)
135
	{
136
		$this->creationDate = $creationDate;
137
	}
138
	
139
	/**
140
	 * @return \DateTime
141
	 */
142
	public function getUpdateDate(): \DateTime
143
	{
144
		return $this->updateDate;
145
	}
146
	
147
	/**
148
	 * @param \DateTime $updateDate
149
	 */
150
	public function setUpdateDate(\DateTime $updateDate)
151
	{
152
		$this->updateDate = $updateDate;
153
	}
154
}
155
156