@@ -12,21 +12,21 @@ discard block |
||
| 12 | 12 | */ |
| 13 | 13 | class User |
| 14 | 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; |
|
| 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 | 30 | |
| 31 | 31 | /** |
| 32 | 32 | * @var AccessRight |
@@ -34,56 +34,56 @@ discard block |
||
| 34 | 34 | * @ORM\ManyToOne(targetEntity="Ribs\RibsAdminBundle\Entity\AccessRight", inversedBy="users") |
| 35 | 35 | * @ORM\JoinColumn(name="id_access_right", referencedColumnName="id", nullable=true) |
| 36 | 36 | */ |
| 37 | - private $accessRightList; |
|
| 38 | - |
|
| 39 | - /** |
|
| 40 | - * @var string |
|
| 41 | - * |
|
| 42 | - * @ORM\Column(name="firstname", type="string", length=255, nullable=false) |
|
| 43 | - */ |
|
| 44 | - private $firstname; |
|
| 45 | - |
|
| 46 | - /** |
|
| 47 | - * @var string |
|
| 48 | - * |
|
| 49 | - * @ORM\Column(name="lastname", type="string", length=255, nullable=false) |
|
| 50 | - */ |
|
| 51 | - private $lastname; |
|
| 52 | - |
|
| 53 | - /** |
|
| 54 | - * @var string |
|
| 55 | - * |
|
| 56 | - * @ORM\Column(name="adress", type="string", length=255, nullable=true) |
|
| 57 | - */ |
|
| 58 | - private $adress; |
|
| 59 | - |
|
| 60 | - /** |
|
| 61 | - * @var string |
|
| 62 | - * |
|
| 63 | - * @ORM\Column(name="postal_code", type="string", length=100, nullable=true) |
|
| 64 | - */ |
|
| 65 | - private $postalCode; |
|
| 66 | - |
|
| 67 | - /** |
|
| 68 | - * @var string |
|
| 69 | - * |
|
| 70 | - * @ORM\Column(name="country", type="string", length=100, nullable=true) |
|
| 71 | - */ |
|
| 72 | - private $country; |
|
| 73 | - |
|
| 74 | - /** |
|
| 75 | - * @var string |
|
| 76 | - * |
|
| 77 | - * @ORM\Column(name="state", type="string", length=255, nullable=true) |
|
| 78 | - */ |
|
| 79 | - private $state; |
|
| 80 | - |
|
| 81 | - /** |
|
| 82 | - * @var string |
|
| 83 | - * |
|
| 84 | - * @ORM\Column(name="access_rights", type="text", nullable=true) |
|
| 85 | - */ |
|
| 86 | - private $accessRights; |
|
| 37 | + private $accessRightList; |
|
| 38 | + |
|
| 39 | + /** |
|
| 40 | + * @var string |
|
| 41 | + * |
|
| 42 | + * @ORM\Column(name="firstname", type="string", length=255, nullable=false) |
|
| 43 | + */ |
|
| 44 | + private $firstname; |
|
| 45 | + |
|
| 46 | + /** |
|
| 47 | + * @var string |
|
| 48 | + * |
|
| 49 | + * @ORM\Column(name="lastname", type="string", length=255, nullable=false) |
|
| 50 | + */ |
|
| 51 | + private $lastname; |
|
| 52 | + |
|
| 53 | + /** |
|
| 54 | + * @var string |
|
| 55 | + * |
|
| 56 | + * @ORM\Column(name="adress", type="string", length=255, nullable=true) |
|
| 57 | + */ |
|
| 58 | + private $adress; |
|
| 59 | + |
|
| 60 | + /** |
|
| 61 | + * @var string |
|
| 62 | + * |
|
| 63 | + * @ORM\Column(name="postal_code", type="string", length=100, nullable=true) |
|
| 64 | + */ |
|
| 65 | + private $postalCode; |
|
| 66 | + |
|
| 67 | + /** |
|
| 68 | + * @var string |
|
| 69 | + * |
|
| 70 | + * @ORM\Column(name="country", type="string", length=100, nullable=true) |
|
| 71 | + */ |
|
| 72 | + private $country; |
|
| 73 | + |
|
| 74 | + /** |
|
| 75 | + * @var string |
|
| 76 | + * |
|
| 77 | + * @ORM\Column(name="state", type="string", length=255, nullable=true) |
|
| 78 | + */ |
|
| 79 | + private $state; |
|
| 80 | + |
|
| 81 | + /** |
|
| 82 | + * @var string |
|
| 83 | + * |
|
| 84 | + * @ORM\Column(name="access_rights", type="text", nullable=true) |
|
| 85 | + */ |
|
| 86 | + private $accessRights; |
|
| 87 | 87 | |
| 88 | 88 | /** |
| 89 | 89 | * @var boolean |
@@ -92,51 +92,51 @@ discard block |
||
| 92 | 92 | */ |
| 93 | 93 | private $archived; |
| 94 | 94 | |
| 95 | - /** |
|
| 96 | - * @var \DateTime |
|
| 97 | - * |
|
| 98 | - * @ORM\Column(name="creation_date", type="date", nullable=true) |
|
| 99 | - */ |
|
| 100 | - private $creationDate; |
|
| 101 | - |
|
| 102 | - /** |
|
| 103 | - * @var \DateTime |
|
| 104 | - * |
|
| 105 | - * @ORM\Column(name="update_date", type="date", nullable=true) |
|
| 106 | - */ |
|
| 107 | - private $updateDate; |
|
| 108 | - |
|
| 109 | - /** |
|
| 110 | - * @return int |
|
| 111 | - */ |
|
| 112 | - public function getId() |
|
| 113 | - { |
|
| 114 | - return $this->id; |
|
| 115 | - } |
|
| 116 | - |
|
| 117 | - /** |
|
| 118 | - * @param int $id |
|
| 119 | - */ |
|
| 120 | - public function setId($id) |
|
| 121 | - { |
|
| 122 | - $this->id = $id; |
|
| 123 | - } |
|
| 124 | - |
|
| 125 | - /** |
|
| 126 | - * @return string |
|
| 127 | - */ |
|
| 128 | - public function getGuid() |
|
| 129 | - { |
|
| 130 | - return $this->guid; |
|
| 131 | - } |
|
| 132 | - |
|
| 133 | - /** |
|
| 134 | - * @param string $guid |
|
| 135 | - */ |
|
| 136 | - public function setGuid($guid) |
|
| 137 | - { |
|
| 138 | - $this->guid = $guid; |
|
| 139 | - } |
|
| 95 | + /** |
|
| 96 | + * @var \DateTime |
|
| 97 | + * |
|
| 98 | + * @ORM\Column(name="creation_date", type="date", nullable=true) |
|
| 99 | + */ |
|
| 100 | + private $creationDate; |
|
| 101 | + |
|
| 102 | + /** |
|
| 103 | + * @var \DateTime |
|
| 104 | + * |
|
| 105 | + * @ORM\Column(name="update_date", type="date", nullable=true) |
|
| 106 | + */ |
|
| 107 | + private $updateDate; |
|
| 108 | + |
|
| 109 | + /** |
|
| 110 | + * @return int |
|
| 111 | + */ |
|
| 112 | + public function getId() |
|
| 113 | + { |
|
| 114 | + return $this->id; |
|
| 115 | + } |
|
| 116 | + |
|
| 117 | + /** |
|
| 118 | + * @param int $id |
|
| 119 | + */ |
|
| 120 | + public function setId($id) |
|
| 121 | + { |
|
| 122 | + $this->id = $id; |
|
| 123 | + } |
|
| 124 | + |
|
| 125 | + /** |
|
| 126 | + * @return string |
|
| 127 | + */ |
|
| 128 | + public function getGuid() |
|
| 129 | + { |
|
| 130 | + return $this->guid; |
|
| 131 | + } |
|
| 132 | + |
|
| 133 | + /** |
|
| 134 | + * @param string $guid |
|
| 135 | + */ |
|
| 136 | + public function setGuid($guid) |
|
| 137 | + { |
|
| 138 | + $this->guid = $guid; |
|
| 139 | + } |
|
| 140 | 140 | |
| 141 | 141 | /** |
| 142 | 142 | * @return AccessRight |
@@ -154,133 +154,133 @@ discard block |
||
| 154 | 154 | $this->accessRightList = $accessRightList; |
| 155 | 155 | } |
| 156 | 156 | |
| 157 | - /** |
|
| 158 | - * @return string |
|
| 159 | - */ |
|
| 160 | - public function getFirstname() |
|
| 161 | - { |
|
| 162 | - return $this->firstname; |
|
| 163 | - } |
|
| 164 | - |
|
| 165 | - /** |
|
| 166 | - * @param string $firstname |
|
| 167 | - */ |
|
| 168 | - public function setFirstname($firstname) |
|
| 169 | - { |
|
| 170 | - $this->firstname = $firstname; |
|
| 171 | - } |
|
| 172 | - |
|
| 173 | - /** |
|
| 174 | - * @return string |
|
| 175 | - */ |
|
| 176 | - public function getLastname() |
|
| 177 | - { |
|
| 178 | - return $this->lastname; |
|
| 179 | - } |
|
| 180 | - |
|
| 181 | - /** |
|
| 182 | - * @param string $lastname |
|
| 183 | - */ |
|
| 184 | - public function setLastname($lastname) |
|
| 185 | - { |
|
| 186 | - $this->lastname = $lastname; |
|
| 187 | - } |
|
| 188 | - |
|
| 189 | - /** |
|
| 190 | - * @return string |
|
| 191 | - */ |
|
| 192 | - public function getAdress() |
|
| 193 | - { |
|
| 194 | - return $this->adress; |
|
| 195 | - } |
|
| 196 | - |
|
| 197 | - /** |
|
| 198 | - * @param string $adress |
|
| 199 | - */ |
|
| 200 | - public function setAdress($adress) |
|
| 201 | - { |
|
| 202 | - $this->adress = $adress; |
|
| 203 | - } |
|
| 204 | - |
|
| 205 | - /** |
|
| 206 | - * @return string |
|
| 207 | - */ |
|
| 208 | - public function getPostalCode() |
|
| 209 | - { |
|
| 210 | - return $this->postalCode; |
|
| 211 | - } |
|
| 212 | - |
|
| 213 | - /** |
|
| 214 | - * @param string $postalCode |
|
| 215 | - */ |
|
| 216 | - public function setPostalCode($postalCode) |
|
| 217 | - { |
|
| 218 | - $this->postalCode = $postalCode; |
|
| 219 | - } |
|
| 220 | - |
|
| 221 | - /** |
|
| 222 | - * @return string |
|
| 223 | - */ |
|
| 224 | - public function getCountry() |
|
| 225 | - { |
|
| 226 | - return $this->country; |
|
| 227 | - } |
|
| 228 | - |
|
| 229 | - /** |
|
| 230 | - * @param string $country |
|
| 231 | - */ |
|
| 232 | - public function setCountry($country) |
|
| 233 | - { |
|
| 234 | - $this->country = $country; |
|
| 235 | - } |
|
| 236 | - |
|
| 237 | - /** |
|
| 238 | - * @return string |
|
| 239 | - */ |
|
| 240 | - public function getState() |
|
| 241 | - { |
|
| 242 | - return $this->state; |
|
| 243 | - } |
|
| 244 | - |
|
| 245 | - /** |
|
| 246 | - * @param string $state |
|
| 247 | - */ |
|
| 248 | - public function setState($state) |
|
| 249 | - { |
|
| 250 | - $this->state = $state; |
|
| 251 | - } |
|
| 252 | - |
|
| 253 | - /** |
|
| 254 | - * @return string |
|
| 255 | - */ |
|
| 256 | - public function getAccessRights() |
|
| 257 | - { |
|
| 258 | - return $this->accessRights; |
|
| 259 | - } |
|
| 260 | - |
|
| 261 | - /** |
|
| 262 | - * @param string $accessRights |
|
| 263 | - */ |
|
| 264 | - public function setAccessRights($accessRights) |
|
| 265 | - { |
|
| 266 | - $this->accessRights = $accessRights; |
|
| 267 | - } |
|
| 268 | - |
|
| 269 | - /** |
|
| 270 | - * @return \DateTime |
|
| 271 | - */ |
|
| 272 | - public function getCreationDate() |
|
| 273 | - { |
|
| 274 | - return $this->creationDate; |
|
| 275 | - } |
|
| 276 | - |
|
| 277 | - /** |
|
| 278 | - * @param \DateTime $creationDate |
|
| 279 | - */ |
|
| 280 | - public function setCreationDate($creationDate) |
|
| 281 | - { |
|
| 282 | - $this->creationDate = $creationDate; |
|
| 283 | - } |
|
| 157 | + /** |
|
| 158 | + * @return string |
|
| 159 | + */ |
|
| 160 | + public function getFirstname() |
|
| 161 | + { |
|
| 162 | + return $this->firstname; |
|
| 163 | + } |
|
| 164 | + |
|
| 165 | + /** |
|
| 166 | + * @param string $firstname |
|
| 167 | + */ |
|
| 168 | + public function setFirstname($firstname) |
|
| 169 | + { |
|
| 170 | + $this->firstname = $firstname; |
|
| 171 | + } |
|
| 172 | + |
|
| 173 | + /** |
|
| 174 | + * @return string |
|
| 175 | + */ |
|
| 176 | + public function getLastname() |
|
| 177 | + { |
|
| 178 | + return $this->lastname; |
|
| 179 | + } |
|
| 180 | + |
|
| 181 | + /** |
|
| 182 | + * @param string $lastname |
|
| 183 | + */ |
|
| 184 | + public function setLastname($lastname) |
|
| 185 | + { |
|
| 186 | + $this->lastname = $lastname; |
|
| 187 | + } |
|
| 188 | + |
|
| 189 | + /** |
|
| 190 | + * @return string |
|
| 191 | + */ |
|
| 192 | + public function getAdress() |
|
| 193 | + { |
|
| 194 | + return $this->adress; |
|
| 195 | + } |
|
| 196 | + |
|
| 197 | + /** |
|
| 198 | + * @param string $adress |
|
| 199 | + */ |
|
| 200 | + public function setAdress($adress) |
|
| 201 | + { |
|
| 202 | + $this->adress = $adress; |
|
| 203 | + } |
|
| 204 | + |
|
| 205 | + /** |
|
| 206 | + * @return string |
|
| 207 | + */ |
|
| 208 | + public function getPostalCode() |
|
| 209 | + { |
|
| 210 | + return $this->postalCode; |
|
| 211 | + } |
|
| 212 | + |
|
| 213 | + /** |
|
| 214 | + * @param string $postalCode |
|
| 215 | + */ |
|
| 216 | + public function setPostalCode($postalCode) |
|
| 217 | + { |
|
| 218 | + $this->postalCode = $postalCode; |
|
| 219 | + } |
|
| 220 | + |
|
| 221 | + /** |
|
| 222 | + * @return string |
|
| 223 | + */ |
|
| 224 | + public function getCountry() |
|
| 225 | + { |
|
| 226 | + return $this->country; |
|
| 227 | + } |
|
| 228 | + |
|
| 229 | + /** |
|
| 230 | + * @param string $country |
|
| 231 | + */ |
|
| 232 | + public function setCountry($country) |
|
| 233 | + { |
|
| 234 | + $this->country = $country; |
|
| 235 | + } |
|
| 236 | + |
|
| 237 | + /** |
|
| 238 | + * @return string |
|
| 239 | + */ |
|
| 240 | + public function getState() |
|
| 241 | + { |
|
| 242 | + return $this->state; |
|
| 243 | + } |
|
| 244 | + |
|
| 245 | + /** |
|
| 246 | + * @param string $state |
|
| 247 | + */ |
|
| 248 | + public function setState($state) |
|
| 249 | + { |
|
| 250 | + $this->state = $state; |
|
| 251 | + } |
|
| 252 | + |
|
| 253 | + /** |
|
| 254 | + * @return string |
|
| 255 | + */ |
|
| 256 | + public function getAccessRights() |
|
| 257 | + { |
|
| 258 | + return $this->accessRights; |
|
| 259 | + } |
|
| 260 | + |
|
| 261 | + /** |
|
| 262 | + * @param string $accessRights |
|
| 263 | + */ |
|
| 264 | + public function setAccessRights($accessRights) |
|
| 265 | + { |
|
| 266 | + $this->accessRights = $accessRights; |
|
| 267 | + } |
|
| 268 | + |
|
| 269 | + /** |
|
| 270 | + * @return \DateTime |
|
| 271 | + */ |
|
| 272 | + public function getCreationDate() |
|
| 273 | + { |
|
| 274 | + return $this->creationDate; |
|
| 275 | + } |
|
| 276 | + |
|
| 277 | + /** |
|
| 278 | + * @param \DateTime $creationDate |
|
| 279 | + */ |
|
| 280 | + public function setCreationDate($creationDate) |
|
| 281 | + { |
|
| 282 | + $this->creationDate = $creationDate; |
|
| 283 | + } |
|
| 284 | 284 | |
| 285 | 285 | /** |
| 286 | 286 | * @return boolean |
@@ -298,21 +298,21 @@ discard block |
||
| 298 | 298 | $this->archived = $archived; |
| 299 | 299 | } |
| 300 | 300 | |
| 301 | - /** |
|
| 302 | - * @return \DateTime |
|
| 303 | - */ |
|
| 304 | - public function getUpdateDate() |
|
| 305 | - { |
|
| 306 | - return $this->updateDate; |
|
| 307 | - } |
|
| 308 | - |
|
| 309 | - /** |
|
| 310 | - * @param \DateTime $updateDate |
|
| 311 | - */ |
|
| 312 | - public function setUpdateDate($updateDate) |
|
| 313 | - { |
|
| 314 | - $this->updateDate = $updateDate; |
|
| 315 | - } |
|
| 301 | + /** |
|
| 302 | + * @return \DateTime |
|
| 303 | + */ |
|
| 304 | + public function getUpdateDate() |
|
| 305 | + { |
|
| 306 | + return $this->updateDate; |
|
| 307 | + } |
|
| 308 | + |
|
| 309 | + /** |
|
| 310 | + * @param \DateTime $updateDate |
|
| 311 | + */ |
|
| 312 | + public function setUpdateDate($updateDate) |
|
| 313 | + { |
|
| 314 | + $this->updateDate = $updateDate; |
|
| 315 | + } |
|
| 316 | 316 | |
| 317 | 317 | |
| 318 | 318 | } |
@@ -11,8 +11,7 @@ discard block |
||
| 11 | 11 | * @ORM\Table(name="access_right") |
| 12 | 12 | * @ORM\Entity |
| 13 | 13 | */ |
| 14 | -class AccessRight |
|
| 15 | -{ |
|
| 14 | +class AccessRight { |
|
| 16 | 15 | /** |
| 17 | 16 | * @var integer |
| 18 | 17 | * |
@@ -67,8 +66,7 @@ discard block |
||
| 67 | 66 | /** |
| 68 | 67 | * AccessRight constructor. |
| 69 | 68 | */ |
| 70 | - public function __construct() |
|
| 71 | - { |
|
| 69 | + public function __construct() { |
|
| 72 | 70 | $this->users = new ArrayCollection(); |
| 73 | 71 | } |
| 74 | 72 | |
@@ -83,8 +81,7 @@ discard block |
||
| 83 | 81 | /** |
| 84 | 82 | * @param int $id |
| 85 | 83 | */ |
| 86 | - public function setId(int $id) |
|
| 87 | - { |
|
| 84 | + public function setId(int $id) { |
|
| 88 | 85 | $this->id = $id; |
| 89 | 86 | } |
| 90 | 87 | |
@@ -99,8 +96,7 @@ discard block |
||
| 99 | 96 | /** |
| 100 | 97 | * @param string $guid |
| 101 | 98 | */ |
| 102 | - public function setGuid(string $guid) |
|
| 103 | - { |
|
| 99 | + public function setGuid(string $guid) { |
|
| 104 | 100 | $this->guid = $guid; |
| 105 | 101 | } |
| 106 | 102 | |
@@ -115,8 +111,7 @@ discard block |
||
| 115 | 111 | /** |
| 116 | 112 | * @param string $name |
| 117 | 113 | */ |
| 118 | - public function setName(string $name) |
|
| 119 | - { |
|
| 114 | + public function setName(string $name) { |
|
| 120 | 115 | $this->name = $name; |
| 121 | 116 | } |
| 122 | 117 | |
@@ -131,8 +126,7 @@ discard block |
||
| 131 | 126 | /** |
| 132 | 127 | * @param string $accessRights |
| 133 | 128 | */ |
| 134 | - public function setAccessRights(string $accessRights) |
|
| 135 | - { |
|
| 129 | + public function setAccessRights(string $accessRights) { |
|
| 136 | 130 | $this->accessRights = $accessRights; |
| 137 | 131 | } |
| 138 | 132 | |
@@ -147,8 +141,7 @@ discard block |
||
| 147 | 141 | /** |
| 148 | 142 | * @param \DateTime $creationDate |
| 149 | 143 | */ |
| 150 | - public function setCreationDate(\DateTime $creationDate) |
|
| 151 | - { |
|
| 144 | + public function setCreationDate(\DateTime $creationDate) { |
|
| 152 | 145 | $this->creationDate = $creationDate; |
| 153 | 146 | } |
| 154 | 147 | |
@@ -163,16 +156,14 @@ discard block |
||
| 163 | 156 | /** |
| 164 | 157 | * @param \DateTime $updateDate |
| 165 | 158 | */ |
| 166 | - public function setUpdateDate(\DateTime $updateDate) |
|
| 167 | - { |
|
| 159 | + public function setUpdateDate(\DateTime $updateDate) { |
|
| 168 | 160 | $this->updateDate = $updateDate; |
| 169 | 161 | } |
| 170 | 162 | |
| 171 | 163 | /** |
| 172 | 164 | * @return ArrayCollection |
| 173 | 165 | */ |
| 174 | - public function getUsers() |
|
| 175 | - { |
|
| 166 | + public function getUsers() { |
|
| 176 | 167 | return $this->users; |
| 177 | 168 | } |
| 178 | 169 | |
@@ -180,8 +171,7 @@ discard block |
||
| 180 | 171 | * @param User $user |
| 181 | 172 | * @return $this |
| 182 | 173 | */ |
| 183 | - public function addUser(User $user) |
|
| 184 | - { |
|
| 174 | + public function addUser(User $user) { |
|
| 185 | 175 | $this->users[] = $user; |
| 186 | 176 | |
| 187 | 177 | return $this; |
@@ -190,8 +180,7 @@ discard block |
||
| 190 | 180 | /** |
| 191 | 181 | * @param User $user |
| 192 | 182 | */ |
| 193 | - public function removeUSer(User $user) |
|
| 194 | - { |
|
| 183 | + public function removeUSer(User $user) { |
|
| 195 | 184 | $this->users->removeElement($user); |
| 196 | 185 | } |
| 197 | 186 | } |
| 198 | 187 | \ No newline at end of file |