]> Raphaƫl G. Git Repositories - userbundle/blob - Entity/Title.php
Remove deprecated extension of \Symfony\Component\Security\Core\Role\Role class
[userbundle] / Entity / Title.php
1 <?php
2
3 namespace Rapsys\UserBundle\Entity;
4
5 /**
6 * Title
7 */
8 class Title {
9 /**
10 * @var integer
11 */
12 protected $id;
13
14 /**
15 * @var string
16 */
17 protected $short;
18
19 /**
20 * @var string
21 */
22 protected $title;
23
24 /**
25 * @var \DateTime
26 */
27 protected $created;
28
29 /**
30 * @var \DateTime
31 */
32 protected $updated;
33
34 /**
35 * @var \Doctrine\Common\Collections\Collection
36 */
37 protected $users;
38
39 /**
40 * Constructor
41 */
42 public function __construct() {
43 $this->users = new \Doctrine\Common\Collections\ArrayCollection();
44 }
45
46 /**
47 * Get id
48 *
49 * @return integer
50 */
51 public function getId() {
52 return $this->id;
53 }
54
55 /**
56 * Set short
57 *
58 * @param string $short
59 *
60 * @return Title
61 */
62 public function setShort($short) {
63 $this->short = $short;
64
65 return $this;
66 }
67
68 /**
69 * Get short
70 *
71 * @return string
72 */
73 public function getShort() {
74 return $this->short;
75 }
76
77 /**
78 * Set title
79 *
80 * @param string $title
81 *
82 * @return Title
83 */
84 public function setTitle($title) {
85 $this->title = $title;
86
87 return $this;
88 }
89
90 /**
91 * Get title
92 *
93 * @return string
94 */
95 public function getTitle() {
96 return $this->title;
97 }
98
99 /**
100 * Set created
101 *
102 * @param \DateTime $created
103 *
104 * @return Title
105 */
106 public function setCreated($created) {
107 $this->created = $created;
108
109 return $this;
110 }
111
112 /**
113 * Get created
114 *
115 * @return \DateTime
116 */
117 public function getCreated() {
118 return $this->created;
119 }
120
121 /**
122 * Set updated
123 *
124 * @param \DateTime $updated
125 *
126 * @return Title
127 */
128 public function setUpdated($updated) {
129 $this->updated = $updated;
130
131 return $this;
132 }
133
134 /**
135 * Get updated
136 *
137 * @return \DateTime
138 */
139 public function getUpdated() {
140 return $this->updated;
141 }
142
143 /**
144 * Add user
145 *
146 * @param \Rapsys\UserBundle\Entity\User $user
147 *
148 * @return Title
149 */
150 public function addUser(\Rapsys\UserBundle\Entity\User $user) {
151 $this->users[] = $user;
152
153 return $this;
154 }
155
156 /**
157 * Remove user
158 *
159 * @param \Rapsys\UserBundle\Entity\User $user
160 */
161 public function removeUser(\Rapsys\UserBundle\Entity\User $user) {
162 $this->users->removeElement($user);
163 }
164
165 /**
166 * Get users
167 *
168 * @return \Doctrine\Common\Collections\Collection
169 */
170 public function getUsers() {
171 return $this->users;
172 }
173 }