@@ -9,8 +9,7 @@ discard block |
||
| 9 | 9 | * @ORM\Entity |
| 10 | 10 | * @ORM\Table(name="fos_user") |
| 11 | 11 | */ |
| 12 | -class FosUser extends BaseUser |
|
| 13 | -{ |
|
| 12 | +class FosUser extends BaseUser { |
|
| 14 | 13 | /** |
| 15 | 14 | * @ORM\Id |
| 16 | 15 | * @ORM\Column(type="integer") |
@@ -29,8 +28,7 @@ discard block |
||
| 29 | 28 | private $user; |
| 30 | 29 | |
| 31 | 30 | |
| 32 | - public function __construct() |
|
| 33 | - { |
|
| 31 | + public function __construct() { |
|
| 34 | 32 | parent::__construct(); |
| 35 | 33 | // your own logic |
| 36 | 34 | } |
@@ -38,16 +36,14 @@ discard block |
||
| 38 | 36 | /** |
| 39 | 37 | * @return User |
| 40 | 38 | */ |
| 41 | - public function getUser() |
|
| 42 | - { |
|
| 39 | + public function getUser() { |
|
| 43 | 40 | return $this->user; |
| 44 | 41 | } |
| 45 | 42 | |
| 46 | 43 | /** |
| 47 | 44 | * @param User $user |
| 48 | 45 | */ |
| 49 | - public function setUser($user) |
|
| 50 | - { |
|
| 46 | + public function setUser($user) { |
|
| 51 | 47 | $this->user = $user; |
| 52 | 48 | } |
| 53 | 49 | |
@@ -12,260 +12,260 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | class User |
| 14 | 14 | { |
| 15 | - /** |
|
| 16 | - * @var integer |
|
| 17 | - * |
|
| 18 | - * @ORM\Column(name="id", type="integer", nullable=false) |
|
| 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="firstname", type="string", length=255, nullable=false) |
|
| 35 | - */ |
|
| 36 | - private $firstname; |
|
| 37 | - |
|
| 38 | - /** |
|
| 39 | - * @var string |
|
| 40 | - * |
|
| 41 | - * @ORM\Column(name="lastname", type="string", length=255, nullable=false) |
|
| 42 | - */ |
|
| 43 | - private $lastname; |
|
| 44 | - |
|
| 45 | - /** |
|
| 46 | - * @var string |
|
| 47 | - * |
|
| 48 | - * @ORM\Column(name="adress", type="string", length=255, nullable=true) |
|
| 49 | - */ |
|
| 50 | - private $adress; |
|
| 51 | - |
|
| 52 | - /** |
|
| 53 | - * @var string |
|
| 54 | - * |
|
| 55 | - * @ORM\Column(name="postal_code", type="string", length=100, nullable=true) |
|
| 56 | - */ |
|
| 57 | - private $postalCode; |
|
| 58 | - |
|
| 59 | - /** |
|
| 60 | - * @var string |
|
| 61 | - * |
|
| 62 | - * @ORM\Column(name="country", type="string", length=100, nullable=true) |
|
| 63 | - */ |
|
| 64 | - private $country; |
|
| 65 | - |
|
| 66 | - /** |
|
| 67 | - * @var string |
|
| 68 | - * |
|
| 69 | - * @ORM\Column(name="state", type="string", length=255, nullable=true) |
|
| 70 | - */ |
|
| 71 | - private $state; |
|
| 72 | - |
|
| 73 | - /** |
|
| 74 | - * @var string |
|
| 75 | - * |
|
| 76 | - * @ORM\Column(name="access_rights", type="text", nullable=true) |
|
| 77 | - */ |
|
| 78 | - private $accessRights; |
|
| 79 | - |
|
| 80 | - /** |
|
| 81 | - * @var \DateTime |
|
| 82 | - * |
|
| 83 | - * @ORM\Column(name="creation_date", type="date", nullable=true) |
|
| 84 | - */ |
|
| 85 | - private $creationDate; |
|
| 86 | - |
|
| 87 | - /** |
|
| 88 | - * @var \DateTime |
|
| 89 | - * |
|
| 90 | - * @ORM\Column(name="update_date", type="date", nullable=true) |
|
| 91 | - */ |
|
| 92 | - private $updateDate; |
|
| 93 | - |
|
| 94 | - /** |
|
| 95 | - * @return int |
|
| 96 | - */ |
|
| 97 | - public function getId() |
|
| 98 | - { |
|
| 99 | - return $this->id; |
|
| 100 | - } |
|
| 101 | - |
|
| 102 | - /** |
|
| 103 | - * @param int $id |
|
| 104 | - */ |
|
| 105 | - public function setId($id) |
|
| 106 | - { |
|
| 107 | - $this->id = $id; |
|
| 108 | - } |
|
| 109 | - |
|
| 110 | - /** |
|
| 111 | - * @return string |
|
| 112 | - */ |
|
| 113 | - public function getGuid() |
|
| 114 | - { |
|
| 115 | - return $this->guid; |
|
| 116 | - } |
|
| 117 | - |
|
| 118 | - /** |
|
| 119 | - * @param string $guid |
|
| 120 | - */ |
|
| 121 | - public function setGuid($guid) |
|
| 122 | - { |
|
| 123 | - $this->guid = $guid; |
|
| 124 | - } |
|
| 125 | - |
|
| 126 | - /** |
|
| 127 | - * @return string |
|
| 128 | - */ |
|
| 129 | - public function getFirstname() |
|
| 130 | - { |
|
| 131 | - return $this->firstname; |
|
| 132 | - } |
|
| 133 | - |
|
| 134 | - /** |
|
| 135 | - * @param string $firstname |
|
| 136 | - */ |
|
| 137 | - public function setFirstname($firstname) |
|
| 138 | - { |
|
| 139 | - $this->firstname = $firstname; |
|
| 140 | - } |
|
| 141 | - |
|
| 142 | - /** |
|
| 143 | - * @return string |
|
| 144 | - */ |
|
| 145 | - public function getLastname() |
|
| 146 | - { |
|
| 147 | - return $this->lastname; |
|
| 148 | - } |
|
| 149 | - |
|
| 150 | - /** |
|
| 151 | - * @param string $lastname |
|
| 152 | - */ |
|
| 153 | - public function setLastname($lastname) |
|
| 154 | - { |
|
| 155 | - $this->lastname = $lastname; |
|
| 156 | - } |
|
| 157 | - |
|
| 158 | - /** |
|
| 159 | - * @return string |
|
| 160 | - */ |
|
| 161 | - public function getAdress() |
|
| 162 | - { |
|
| 163 | - return $this->adress; |
|
| 164 | - } |
|
| 165 | - |
|
| 166 | - /** |
|
| 167 | - * @param string $adress |
|
| 168 | - */ |
|
| 169 | - public function setAdress($adress) |
|
| 170 | - { |
|
| 171 | - $this->adress = $adress; |
|
| 172 | - } |
|
| 173 | - |
|
| 174 | - /** |
|
| 175 | - * @return string |
|
| 176 | - */ |
|
| 177 | - public function getPostalCode() |
|
| 178 | - { |
|
| 179 | - return $this->postalCode; |
|
| 180 | - } |
|
| 181 | - |
|
| 182 | - /** |
|
| 183 | - * @param string $postalCode |
|
| 184 | - */ |
|
| 185 | - public function setPostalCode($postalCode) |
|
| 186 | - { |
|
| 187 | - $this->postalCode = $postalCode; |
|
| 188 | - } |
|
| 189 | - |
|
| 190 | - /** |
|
| 191 | - * @return string |
|
| 192 | - */ |
|
| 193 | - public function getCountry() |
|
| 194 | - { |
|
| 195 | - return $this->country; |
|
| 196 | - } |
|
| 197 | - |
|
| 198 | - /** |
|
| 199 | - * @param string $country |
|
| 200 | - */ |
|
| 201 | - public function setCountry($country) |
|
| 202 | - { |
|
| 203 | - $this->country = $country; |
|
| 204 | - } |
|
| 205 | - |
|
| 206 | - /** |
|
| 207 | - * @return string |
|
| 208 | - */ |
|
| 209 | - public function getState() |
|
| 210 | - { |
|
| 211 | - return $this->state; |
|
| 212 | - } |
|
| 213 | - |
|
| 214 | - /** |
|
| 215 | - * @param string $state |
|
| 216 | - */ |
|
| 217 | - public function setState($state) |
|
| 218 | - { |
|
| 219 | - $this->state = $state; |
|
| 220 | - } |
|
| 221 | - |
|
| 222 | - /** |
|
| 223 | - * @return string |
|
| 224 | - */ |
|
| 225 | - public function getAccessRights() |
|
| 226 | - { |
|
| 227 | - return $this->accessRights; |
|
| 228 | - } |
|
| 229 | - |
|
| 230 | - /** |
|
| 231 | - * @param string $accessRights |
|
| 232 | - */ |
|
| 233 | - public function setAccessRights($accessRights) |
|
| 234 | - { |
|
| 235 | - $this->accessRights = $accessRights; |
|
| 236 | - } |
|
| 237 | - |
|
| 238 | - /** |
|
| 239 | - * @return \DateTime |
|
| 240 | - */ |
|
| 241 | - public function getCreationDate() |
|
| 242 | - { |
|
| 243 | - return $this->creationDate; |
|
| 244 | - } |
|
| 245 | - |
|
| 246 | - /** |
|
| 247 | - * @param \DateTime $creationDate |
|
| 248 | - */ |
|
| 249 | - public function setCreationDate($creationDate) |
|
| 250 | - { |
|
| 251 | - $this->creationDate = $creationDate; |
|
| 252 | - } |
|
| 253 | - |
|
| 254 | - /** |
|
| 255 | - * @return \DateTime |
|
| 256 | - */ |
|
| 257 | - public function getUpdateDate() |
|
| 258 | - { |
|
| 259 | - return $this->updateDate; |
|
| 260 | - } |
|
| 261 | - |
|
| 262 | - /** |
|
| 263 | - * @param \DateTime $updateDate |
|
| 264 | - */ |
|
| 265 | - public function setUpdateDate($updateDate) |
|
| 266 | - { |
|
| 267 | - $this->updateDate = $updateDate; |
|
| 268 | - } |
|
| 15 | + /** |
|
| 16 | + * @var integer |
|
| 17 | + * |
|
| 18 | + * @ORM\Column(name="id", type="integer", nullable=false) |
|
| 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="firstname", type="string", length=255, nullable=false) |
|
| 35 | + */ |
|
| 36 | + private $firstname; |
|
| 37 | + |
|
| 38 | + /** |
|
| 39 | + * @var string |
|
| 40 | + * |
|
| 41 | + * @ORM\Column(name="lastname", type="string", length=255, nullable=false) |
|
| 42 | + */ |
|
| 43 | + private $lastname; |
|
| 44 | + |
|
| 45 | + /** |
|
| 46 | + * @var string |
|
| 47 | + * |
|
| 48 | + * @ORM\Column(name="adress", type="string", length=255, nullable=true) |
|
| 49 | + */ |
|
| 50 | + private $adress; |
|
| 51 | + |
|
| 52 | + /** |
|
| 53 | + * @var string |
|
| 54 | + * |
|
| 55 | + * @ORM\Column(name="postal_code", type="string", length=100, nullable=true) |
|
| 56 | + */ |
|
| 57 | + private $postalCode; |
|
| 58 | + |
|
| 59 | + /** |
|
| 60 | + * @var string |
|
| 61 | + * |
|
| 62 | + * @ORM\Column(name="country", type="string", length=100, nullable=true) |
|
| 63 | + */ |
|
| 64 | + private $country; |
|
| 65 | + |
|
| 66 | + /** |
|
| 67 | + * @var string |
|
| 68 | + * |
|
| 69 | + * @ORM\Column(name="state", type="string", length=255, nullable=true) |
|
| 70 | + */ |
|
| 71 | + private $state; |
|
| 72 | + |
|
| 73 | + /** |
|
| 74 | + * @var string |
|
| 75 | + * |
|
| 76 | + * @ORM\Column(name="access_rights", type="text", nullable=true) |
|
| 77 | + */ |
|
| 78 | + private $accessRights; |
|
| 79 | + |
|
| 80 | + /** |
|
| 81 | + * @var \DateTime |
|
| 82 | + * |
|
| 83 | + * @ORM\Column(name="creation_date", type="date", nullable=true) |
|
| 84 | + */ |
|
| 85 | + private $creationDate; |
|
| 86 | + |
|
| 87 | + /** |
|
| 88 | + * @var \DateTime |
|
| 89 | + * |
|
| 90 | + * @ORM\Column(name="update_date", type="date", nullable=true) |
|
| 91 | + */ |
|
| 92 | + private $updateDate; |
|
| 93 | + |
|
| 94 | + /** |
|
| 95 | + * @return int |
|
| 96 | + */ |
|
| 97 | + public function getId() |
|
| 98 | + { |
|
| 99 | + return $this->id; |
|
| 100 | + } |
|
| 101 | + |
|
| 102 | + /** |
|
| 103 | + * @param int $id |
|
| 104 | + */ |
|
| 105 | + public function setId($id) |
|
| 106 | + { |
|
| 107 | + $this->id = $id; |
|
| 108 | + } |
|
| 109 | + |
|
| 110 | + /** |
|
| 111 | + * @return string |
|
| 112 | + */ |
|
| 113 | + public function getGuid() |
|
| 114 | + { |
|
| 115 | + return $this->guid; |
|
| 116 | + } |
|
| 117 | + |
|
| 118 | + /** |
|
| 119 | + * @param string $guid |
|
| 120 | + */ |
|
| 121 | + public function setGuid($guid) |
|
| 122 | + { |
|
| 123 | + $this->guid = $guid; |
|
| 124 | + } |
|
| 125 | + |
|
| 126 | + /** |
|
| 127 | + * @return string |
|
| 128 | + */ |
|
| 129 | + public function getFirstname() |
|
| 130 | + { |
|
| 131 | + return $this->firstname; |
|
| 132 | + } |
|
| 133 | + |
|
| 134 | + /** |
|
| 135 | + * @param string $firstname |
|
| 136 | + */ |
|
| 137 | + public function setFirstname($firstname) |
|
| 138 | + { |
|
| 139 | + $this->firstname = $firstname; |
|
| 140 | + } |
|
| 141 | + |
|
| 142 | + /** |
|
| 143 | + * @return string |
|
| 144 | + */ |
|
| 145 | + public function getLastname() |
|
| 146 | + { |
|
| 147 | + return $this->lastname; |
|
| 148 | + } |
|
| 149 | + |
|
| 150 | + /** |
|
| 151 | + * @param string $lastname |
|
| 152 | + */ |
|
| 153 | + public function setLastname($lastname) |
|
| 154 | + { |
|
| 155 | + $this->lastname = $lastname; |
|
| 156 | + } |
|
| 157 | + |
|
| 158 | + /** |
|
| 159 | + * @return string |
|
| 160 | + */ |
|
| 161 | + public function getAdress() |
|
| 162 | + { |
|
| 163 | + return $this->adress; |
|
| 164 | + } |
|
| 165 | + |
|
| 166 | + /** |
|
| 167 | + * @param string $adress |
|
| 168 | + */ |
|
| 169 | + public function setAdress($adress) |
|
| 170 | + { |
|
| 171 | + $this->adress = $adress; |
|
| 172 | + } |
|
| 173 | + |
|
| 174 | + /** |
|
| 175 | + * @return string |
|
| 176 | + */ |
|
| 177 | + public function getPostalCode() |
|
| 178 | + { |
|
| 179 | + return $this->postalCode; |
|
| 180 | + } |
|
| 181 | + |
|
| 182 | + /** |
|
| 183 | + * @param string $postalCode |
|
| 184 | + */ |
|
| 185 | + public function setPostalCode($postalCode) |
|
| 186 | + { |
|
| 187 | + $this->postalCode = $postalCode; |
|
| 188 | + } |
|
| 189 | + |
|
| 190 | + /** |
|
| 191 | + * @return string |
|
| 192 | + */ |
|
| 193 | + public function getCountry() |
|
| 194 | + { |
|
| 195 | + return $this->country; |
|
| 196 | + } |
|
| 197 | + |
|
| 198 | + /** |
|
| 199 | + * @param string $country |
|
| 200 | + */ |
|
| 201 | + public function setCountry($country) |
|
| 202 | + { |
|
| 203 | + $this->country = $country; |
|
| 204 | + } |
|
| 205 | + |
|
| 206 | + /** |
|
| 207 | + * @return string |
|
| 208 | + */ |
|
| 209 | + public function getState() |
|
| 210 | + { |
|
| 211 | + return $this->state; |
|
| 212 | + } |
|
| 213 | + |
|
| 214 | + /** |
|
| 215 | + * @param string $state |
|
| 216 | + */ |
|
| 217 | + public function setState($state) |
|
| 218 | + { |
|
| 219 | + $this->state = $state; |
|
| 220 | + } |
|
| 221 | + |
|
| 222 | + /** |
|
| 223 | + * @return string |
|
| 224 | + */ |
|
| 225 | + public function getAccessRights() |
|
| 226 | + { |
|
| 227 | + return $this->accessRights; |
|
| 228 | + } |
|
| 229 | + |
|
| 230 | + /** |
|
| 231 | + * @param string $accessRights |
|
| 232 | + */ |
|
| 233 | + public function setAccessRights($accessRights) |
|
| 234 | + { |
|
| 235 | + $this->accessRights = $accessRights; |
|
| 236 | + } |
|
| 237 | + |
|
| 238 | + /** |
|
| 239 | + * @return \DateTime |
|
| 240 | + */ |
|
| 241 | + public function getCreationDate() |
|
| 242 | + { |
|
| 243 | + return $this->creationDate; |
|
| 244 | + } |
|
| 245 | + |
|
| 246 | + /** |
|
| 247 | + * @param \DateTime $creationDate |
|
| 248 | + */ |
|
| 249 | + public function setCreationDate($creationDate) |
|
| 250 | + { |
|
| 251 | + $this->creationDate = $creationDate; |
|
| 252 | + } |
|
| 253 | + |
|
| 254 | + /** |
|
| 255 | + * @return \DateTime |
|
| 256 | + */ |
|
| 257 | + public function getUpdateDate() |
|
| 258 | + { |
|
| 259 | + return $this->updateDate; |
|
| 260 | + } |
|
| 261 | + |
|
| 262 | + /** |
|
| 263 | + * @param \DateTime $updateDate |
|
| 264 | + */ |
|
| 265 | + public function setUpdateDate($updateDate) |
|
| 266 | + { |
|
| 267 | + $this->updateDate = $updateDate; |
|
| 268 | + } |
|
| 269 | 269 | |
| 270 | 270 | |
| 271 | 271 | } |
@@ -10,8 +10,7 @@ discard block |
||
| 10 | 10 | * @ORM\Table(name="user") |
| 11 | 11 | * @ORM\Entity |
| 12 | 12 | */ |
| 13 | -class User |
|
| 14 | -{ |
|
| 13 | +class User { |
|
| 15 | 14 | /** |
| 16 | 15 | * @var integer |
| 17 | 16 | * |
@@ -94,176 +93,154 @@ discard block |
||
| 94 | 93 | /** |
| 95 | 94 | * @return int |
| 96 | 95 | */ |
| 97 | - public function getId() |
|
| 98 | - { |
|
| 96 | + public function getId() { |
|
| 99 | 97 | return $this->id; |
| 100 | 98 | } |
| 101 | 99 | |
| 102 | 100 | /** |
| 103 | 101 | * @param int $id |
| 104 | 102 | */ |
| 105 | - public function setId($id) |
|
| 106 | - { |
|
| 103 | + public function setId($id) { |
|
| 107 | 104 | $this->id = $id; |
| 108 | 105 | } |
| 109 | 106 | |
| 110 | 107 | /** |
| 111 | 108 | * @return string |
| 112 | 109 | */ |
| 113 | - public function getGuid() |
|
| 114 | - { |
|
| 110 | + public function getGuid() { |
|
| 115 | 111 | return $this->guid; |
| 116 | 112 | } |
| 117 | 113 | |
| 118 | 114 | /** |
| 119 | 115 | * @param string $guid |
| 120 | 116 | */ |
| 121 | - public function setGuid($guid) |
|
| 122 | - { |
|
| 117 | + public function setGuid($guid) { |
|
| 123 | 118 | $this->guid = $guid; |
| 124 | 119 | } |
| 125 | 120 | |
| 126 | 121 | /** |
| 127 | 122 | * @return string |
| 128 | 123 | */ |
| 129 | - public function getFirstname() |
|
| 130 | - { |
|
| 124 | + public function getFirstname() { |
|
| 131 | 125 | return $this->firstname; |
| 132 | 126 | } |
| 133 | 127 | |
| 134 | 128 | /** |
| 135 | 129 | * @param string $firstname |
| 136 | 130 | */ |
| 137 | - public function setFirstname($firstname) |
|
| 138 | - { |
|
| 131 | + public function setFirstname($firstname) { |
|
| 139 | 132 | $this->firstname = $firstname; |
| 140 | 133 | } |
| 141 | 134 | |
| 142 | 135 | /** |
| 143 | 136 | * @return string |
| 144 | 137 | */ |
| 145 | - public function getLastname() |
|
| 146 | - { |
|
| 138 | + public function getLastname() { |
|
| 147 | 139 | return $this->lastname; |
| 148 | 140 | } |
| 149 | 141 | |
| 150 | 142 | /** |
| 151 | 143 | * @param string $lastname |
| 152 | 144 | */ |
| 153 | - public function setLastname($lastname) |
|
| 154 | - { |
|
| 145 | + public function setLastname($lastname) { |
|
| 155 | 146 | $this->lastname = $lastname; |
| 156 | 147 | } |
| 157 | 148 | |
| 158 | 149 | /** |
| 159 | 150 | * @return string |
| 160 | 151 | */ |
| 161 | - public function getAdress() |
|
| 162 | - { |
|
| 152 | + public function getAdress() { |
|
| 163 | 153 | return $this->adress; |
| 164 | 154 | } |
| 165 | 155 | |
| 166 | 156 | /** |
| 167 | 157 | * @param string $adress |
| 168 | 158 | */ |
| 169 | - public function setAdress($adress) |
|
| 170 | - { |
|
| 159 | + public function setAdress($adress) { |
|
| 171 | 160 | $this->adress = $adress; |
| 172 | 161 | } |
| 173 | 162 | |
| 174 | 163 | /** |
| 175 | 164 | * @return string |
| 176 | 165 | */ |
| 177 | - public function getPostalCode() |
|
| 178 | - { |
|
| 166 | + public function getPostalCode() { |
|
| 179 | 167 | return $this->postalCode; |
| 180 | 168 | } |
| 181 | 169 | |
| 182 | 170 | /** |
| 183 | 171 | * @param string $postalCode |
| 184 | 172 | */ |
| 185 | - public function setPostalCode($postalCode) |
|
| 186 | - { |
|
| 173 | + public function setPostalCode($postalCode) { |
|
| 187 | 174 | $this->postalCode = $postalCode; |
| 188 | 175 | } |
| 189 | 176 | |
| 190 | 177 | /** |
| 191 | 178 | * @return string |
| 192 | 179 | */ |
| 193 | - public function getCountry() |
|
| 194 | - { |
|
| 180 | + public function getCountry() { |
|
| 195 | 181 | return $this->country; |
| 196 | 182 | } |
| 197 | 183 | |
| 198 | 184 | /** |
| 199 | 185 | * @param string $country |
| 200 | 186 | */ |
| 201 | - public function setCountry($country) |
|
| 202 | - { |
|
| 187 | + public function setCountry($country) { |
|
| 203 | 188 | $this->country = $country; |
| 204 | 189 | } |
| 205 | 190 | |
| 206 | 191 | /** |
| 207 | 192 | * @return string |
| 208 | 193 | */ |
| 209 | - public function getState() |
|
| 210 | - { |
|
| 194 | + public function getState() { |
|
| 211 | 195 | return $this->state; |
| 212 | 196 | } |
| 213 | 197 | |
| 214 | 198 | /** |
| 215 | 199 | * @param string $state |
| 216 | 200 | */ |
| 217 | - public function setState($state) |
|
| 218 | - { |
|
| 201 | + public function setState($state) { |
|
| 219 | 202 | $this->state = $state; |
| 220 | 203 | } |
| 221 | 204 | |
| 222 | 205 | /** |
| 223 | 206 | * @return string |
| 224 | 207 | */ |
| 225 | - public function getAccessRights() |
|
| 226 | - { |
|
| 208 | + public function getAccessRights() { |
|
| 227 | 209 | return $this->accessRights; |
| 228 | 210 | } |
| 229 | 211 | |
| 230 | 212 | /** |
| 231 | 213 | * @param string $accessRights |
| 232 | 214 | */ |
| 233 | - public function setAccessRights($accessRights) |
|
| 234 | - { |
|
| 215 | + public function setAccessRights($accessRights) { |
|
| 235 | 216 | $this->accessRights = $accessRights; |
| 236 | 217 | } |
| 237 | 218 | |
| 238 | 219 | /** |
| 239 | 220 | * @return \DateTime |
| 240 | 221 | */ |
| 241 | - public function getCreationDate() |
|
| 242 | - { |
|
| 222 | + public function getCreationDate() { |
|
| 243 | 223 | return $this->creationDate; |
| 244 | 224 | } |
| 245 | 225 | |
| 246 | 226 | /** |
| 247 | 227 | * @param \DateTime $creationDate |
| 248 | 228 | */ |
| 249 | - public function setCreationDate($creationDate) |
|
| 250 | - { |
|
| 229 | + public function setCreationDate($creationDate) { |
|
| 251 | 230 | $this->creationDate = $creationDate; |
| 252 | 231 | } |
| 253 | 232 | |
| 254 | 233 | /** |
| 255 | 234 | * @return \DateTime |
| 256 | 235 | */ |
| 257 | - public function getUpdateDate() |
|
| 258 | - { |
|
| 236 | + public function getUpdateDate() { |
|
| 259 | 237 | return $this->updateDate; |
| 260 | 238 | } |
| 261 | 239 | |
| 262 | 240 | /** |
| 263 | 241 | * @param \DateTime $updateDate |
| 264 | 242 | */ |
| 265 | - public function setUpdateDate($updateDate) |
|
| 266 | - { |
|
| 243 | + public function setUpdateDate($updateDate) { |
|
| 267 | 244 | $this->updateDate = $updateDate; |
| 268 | 245 | } |
| 269 | 246 | |
@@ -12,240 +12,240 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | class Page |
| 14 | 14 | { |
| 15 | - /** |
|
| 16 | - * @var integer |
|
| 17 | - * |
|
| 18 | - * @ORM\Column(name="id", type="integer", nullable=false) |
|
| 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="title_tag", type="string", length=70, nullable=true) |
|
| 35 | - */ |
|
| 36 | - private $titleTag; |
|
| 37 | - |
|
| 38 | - /** |
|
| 39 | - * @var string |
|
| 40 | - * |
|
| 41 | - * @ORM\Column(name="description_tag", type="string", length=160, nullable=true) |
|
| 42 | - */ |
|
| 43 | - private $descriptionTag; |
|
| 44 | - |
|
| 45 | - /** |
|
| 46 | - * @var string |
|
| 47 | - * |
|
| 48 | - * @ORM\Column(name="title", type="string", length=255, nullable=false) |
|
| 49 | - */ |
|
| 50 | - private $title; |
|
| 51 | - |
|
| 52 | - /** |
|
| 53 | - * @var string |
|
| 54 | - * |
|
| 55 | - * @ORM\Column(name="content", type="text", nullable=true) |
|
| 56 | - */ |
|
| 57 | - private $content; |
|
| 58 | - |
|
| 59 | - /** |
|
| 60 | - * @var integer |
|
| 61 | - * |
|
| 62 | - * @ORM\Column(name="active", type="integer", nullable=false) |
|
| 63 | - */ |
|
| 64 | - private $active; |
|
| 65 | - |
|
| 66 | - /** |
|
| 67 | - * @var integer |
|
| 68 | - * |
|
| 69 | - * @ORM\Column(name="order", type="integer", nullable=false) |
|
| 70 | - */ |
|
| 71 | - private $order; |
|
| 72 | - |
|
| 73 | - /** |
|
| 74 | - * @var integer |
|
| 75 | - * |
|
| 76 | - * @ORM\Column(name="displayed", type="integer", nullable=false) |
|
| 77 | - */ |
|
| 78 | - private $displayed; |
|
| 79 | - |
|
| 80 | - /** |
|
| 81 | - * @var \Page |
|
| 82 | - * |
|
| 83 | - * @ORM\ManyToOne(targetEntity="Page") |
|
| 84 | - * @ORM\JoinColumns({ |
|
| 85 | - * @ORM\JoinColumn(name="parent", referencedColumnName="id") |
|
| 86 | - * }) |
|
| 87 | - */ |
|
| 88 | - private $parent; |
|
| 89 | - |
|
| 90 | - /** |
|
| 91 | - * @return int |
|
| 92 | - */ |
|
| 93 | - public function getId() |
|
| 94 | - { |
|
| 95 | - return $this->id; |
|
| 96 | - } |
|
| 97 | - |
|
| 98 | - /** |
|
| 99 | - * @param int $id |
|
| 100 | - */ |
|
| 101 | - public function setId($id) |
|
| 102 | - { |
|
| 103 | - $this->id = $id; |
|
| 104 | - } |
|
| 105 | - |
|
| 106 | - /** |
|
| 107 | - * @return string |
|
| 108 | - */ |
|
| 109 | - public function getGuid() |
|
| 110 | - { |
|
| 111 | - return $this->guid; |
|
| 112 | - } |
|
| 113 | - |
|
| 114 | - /** |
|
| 115 | - * @param string $guid |
|
| 116 | - */ |
|
| 117 | - public function setGuid($guid) |
|
| 118 | - { |
|
| 119 | - $this->guid = $guid; |
|
| 120 | - } |
|
| 121 | - |
|
| 122 | - /** |
|
| 123 | - * @return string |
|
| 124 | - */ |
|
| 125 | - public function getTitleTag() |
|
| 126 | - { |
|
| 127 | - return $this->titleTag; |
|
| 128 | - } |
|
| 129 | - |
|
| 130 | - /** |
|
| 131 | - * @param string $titleTag |
|
| 132 | - */ |
|
| 133 | - public function setTitleTag($titleTag) |
|
| 134 | - { |
|
| 135 | - $this->titleTag = $titleTag; |
|
| 136 | - } |
|
| 137 | - |
|
| 138 | - /** |
|
| 139 | - * @return string |
|
| 140 | - */ |
|
| 141 | - public function getDescriptionTag() |
|
| 142 | - { |
|
| 143 | - return $this->descriptionTag; |
|
| 144 | - } |
|
| 145 | - |
|
| 146 | - /** |
|
| 147 | - * @param string $descriptionTag |
|
| 148 | - */ |
|
| 149 | - public function setDescriptionTag($descriptionTag) |
|
| 150 | - { |
|
| 151 | - $this->descriptionTag = $descriptionTag; |
|
| 152 | - } |
|
| 153 | - |
|
| 154 | - /** |
|
| 155 | - * @return string |
|
| 156 | - */ |
|
| 157 | - public function getTitle() |
|
| 158 | - { |
|
| 159 | - return $this->title; |
|
| 160 | - } |
|
| 161 | - |
|
| 162 | - /** |
|
| 163 | - * @param string $title |
|
| 164 | - */ |
|
| 165 | - public function setTitle($title) |
|
| 166 | - { |
|
| 167 | - $this->title = $title; |
|
| 168 | - } |
|
| 169 | - |
|
| 170 | - /** |
|
| 171 | - * @return string |
|
| 172 | - */ |
|
| 173 | - public function getContent() |
|
| 174 | - { |
|
| 175 | - return $this->content; |
|
| 176 | - } |
|
| 177 | - |
|
| 178 | - /** |
|
| 179 | - * @param string $content |
|
| 180 | - */ |
|
| 181 | - public function setContent($content) |
|
| 182 | - { |
|
| 183 | - $this->content = $content; |
|
| 184 | - } |
|
| 185 | - |
|
| 186 | - /** |
|
| 187 | - * @return int |
|
| 188 | - */ |
|
| 189 | - public function getActive() |
|
| 190 | - { |
|
| 191 | - return $this->active; |
|
| 192 | - } |
|
| 193 | - |
|
| 194 | - /** |
|
| 195 | - * @param int $active |
|
| 196 | - */ |
|
| 197 | - public function setActive($active) |
|
| 198 | - { |
|
| 199 | - $this->active = $active; |
|
| 200 | - } |
|
| 201 | - |
|
| 202 | - /** |
|
| 203 | - * @return int |
|
| 204 | - */ |
|
| 205 | - public function getOrder() |
|
| 206 | - { |
|
| 207 | - return $this->order; |
|
| 208 | - } |
|
| 209 | - |
|
| 210 | - /** |
|
| 211 | - * @param int $order |
|
| 212 | - */ |
|
| 213 | - public function setOrder($order) |
|
| 214 | - { |
|
| 215 | - $this->order = $order; |
|
| 216 | - } |
|
| 217 | - |
|
| 218 | - /** |
|
| 219 | - * @return int |
|
| 220 | - */ |
|
| 221 | - public function getDisplayed() |
|
| 222 | - { |
|
| 223 | - return $this->displayed; |
|
| 224 | - } |
|
| 225 | - |
|
| 226 | - /** |
|
| 227 | - * @param int $displayed |
|
| 228 | - */ |
|
| 229 | - public function setDisplayed($displayed) |
|
| 230 | - { |
|
| 231 | - $this->displayed = $displayed; |
|
| 232 | - } |
|
| 233 | - |
|
| 234 | - /** |
|
| 235 | - * @return \Page |
|
| 236 | - */ |
|
| 237 | - public function getParent() |
|
| 238 | - { |
|
| 239 | - return $this->parent; |
|
| 240 | - } |
|
| 241 | - |
|
| 242 | - /** |
|
| 243 | - * @param \Page $parent |
|
| 244 | - */ |
|
| 245 | - public function setParent($parent) |
|
| 246 | - { |
|
| 247 | - $this->parent = $parent; |
|
| 248 | - } |
|
| 15 | + /** |
|
| 16 | + * @var integer |
|
| 17 | + * |
|
| 18 | + * @ORM\Column(name="id", type="integer", nullable=false) |
|
| 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="title_tag", type="string", length=70, nullable=true) |
|
| 35 | + */ |
|
| 36 | + private $titleTag; |
|
| 37 | + |
|
| 38 | + /** |
|
| 39 | + * @var string |
|
| 40 | + * |
|
| 41 | + * @ORM\Column(name="description_tag", type="string", length=160, nullable=true) |
|
| 42 | + */ |
|
| 43 | + private $descriptionTag; |
|
| 44 | + |
|
| 45 | + /** |
|
| 46 | + * @var string |
|
| 47 | + * |
|
| 48 | + * @ORM\Column(name="title", type="string", length=255, nullable=false) |
|
| 49 | + */ |
|
| 50 | + private $title; |
|
| 51 | + |
|
| 52 | + /** |
|
| 53 | + * @var string |
|
| 54 | + * |
|
| 55 | + * @ORM\Column(name="content", type="text", nullable=true) |
|
| 56 | + */ |
|
| 57 | + private $content; |
|
| 58 | + |
|
| 59 | + /** |
|
| 60 | + * @var integer |
|
| 61 | + * |
|
| 62 | + * @ORM\Column(name="active", type="integer", nullable=false) |
|
| 63 | + */ |
|
| 64 | + private $active; |
|
| 65 | + |
|
| 66 | + /** |
|
| 67 | + * @var integer |
|
| 68 | + * |
|
| 69 | + * @ORM\Column(name="order", type="integer", nullable=false) |
|
| 70 | + */ |
|
| 71 | + private $order; |
|
| 72 | + |
|
| 73 | + /** |
|
| 74 | + * @var integer |
|
| 75 | + * |
|
| 76 | + * @ORM\Column(name="displayed", type="integer", nullable=false) |
|
| 77 | + */ |
|
| 78 | + private $displayed; |
|
| 79 | + |
|
| 80 | + /** |
|
| 81 | + * @var \Page |
|
| 82 | + * |
|
| 83 | + * @ORM\ManyToOne(targetEntity="Page") |
|
| 84 | + * @ORM\JoinColumns({ |
|
| 85 | + * @ORM\JoinColumn(name="parent", referencedColumnName="id") |
|
| 86 | + * }) |
|
| 87 | + */ |
|
| 88 | + private $parent; |
|
| 89 | + |
|
| 90 | + /** |
|
| 91 | + * @return int |
|
| 92 | + */ |
|
| 93 | + public function getId() |
|
| 94 | + { |
|
| 95 | + return $this->id; |
|
| 96 | + } |
|
| 97 | + |
|
| 98 | + /** |
|
| 99 | + * @param int $id |
|
| 100 | + */ |
|
| 101 | + public function setId($id) |
|
| 102 | + { |
|
| 103 | + $this->id = $id; |
|
| 104 | + } |
|
| 105 | + |
|
| 106 | + /** |
|
| 107 | + * @return string |
|
| 108 | + */ |
|
| 109 | + public function getGuid() |
|
| 110 | + { |
|
| 111 | + return $this->guid; |
|
| 112 | + } |
|
| 113 | + |
|
| 114 | + /** |
|
| 115 | + * @param string $guid |
|
| 116 | + */ |
|
| 117 | + public function setGuid($guid) |
|
| 118 | + { |
|
| 119 | + $this->guid = $guid; |
|
| 120 | + } |
|
| 121 | + |
|
| 122 | + /** |
|
| 123 | + * @return string |
|
| 124 | + */ |
|
| 125 | + public function getTitleTag() |
|
| 126 | + { |
|
| 127 | + return $this->titleTag; |
|
| 128 | + } |
|
| 129 | + |
|
| 130 | + /** |
|
| 131 | + * @param string $titleTag |
|
| 132 | + */ |
|
| 133 | + public function setTitleTag($titleTag) |
|
| 134 | + { |
|
| 135 | + $this->titleTag = $titleTag; |
|
| 136 | + } |
|
| 137 | + |
|
| 138 | + /** |
|
| 139 | + * @return string |
|
| 140 | + */ |
|
| 141 | + public function getDescriptionTag() |
|
| 142 | + { |
|
| 143 | + return $this->descriptionTag; |
|
| 144 | + } |
|
| 145 | + |
|
| 146 | + /** |
|
| 147 | + * @param string $descriptionTag |
|
| 148 | + */ |
|
| 149 | + public function setDescriptionTag($descriptionTag) |
|
| 150 | + { |
|
| 151 | + $this->descriptionTag = $descriptionTag; |
|
| 152 | + } |
|
| 153 | + |
|
| 154 | + /** |
|
| 155 | + * @return string |
|
| 156 | + */ |
|
| 157 | + public function getTitle() |
|
| 158 | + { |
|
| 159 | + return $this->title; |
|
| 160 | + } |
|
| 161 | + |
|
| 162 | + /** |
|
| 163 | + * @param string $title |
|
| 164 | + */ |
|
| 165 | + public function setTitle($title) |
|
| 166 | + { |
|
| 167 | + $this->title = $title; |
|
| 168 | + } |
|
| 169 | + |
|
| 170 | + /** |
|
| 171 | + * @return string |
|
| 172 | + */ |
|
| 173 | + public function getContent() |
|
| 174 | + { |
|
| 175 | + return $this->content; |
|
| 176 | + } |
|
| 177 | + |
|
| 178 | + /** |
|
| 179 | + * @param string $content |
|
| 180 | + */ |
|
| 181 | + public function setContent($content) |
|
| 182 | + { |
|
| 183 | + $this->content = $content; |
|
| 184 | + } |
|
| 185 | + |
|
| 186 | + /** |
|
| 187 | + * @return int |
|
| 188 | + */ |
|
| 189 | + public function getActive() |
|
| 190 | + { |
|
| 191 | + return $this->active; |
|
| 192 | + } |
|
| 193 | + |
|
| 194 | + /** |
|
| 195 | + * @param int $active |
|
| 196 | + */ |
|
| 197 | + public function setActive($active) |
|
| 198 | + { |
|
| 199 | + $this->active = $active; |
|
| 200 | + } |
|
| 201 | + |
|
| 202 | + /** |
|
| 203 | + * @return int |
|
| 204 | + */ |
|
| 205 | + public function getOrder() |
|
| 206 | + { |
|
| 207 | + return $this->order; |
|
| 208 | + } |
|
| 209 | + |
|
| 210 | + /** |
|
| 211 | + * @param int $order |
|
| 212 | + */ |
|
| 213 | + public function setOrder($order) |
|
| 214 | + { |
|
| 215 | + $this->order = $order; |
|
| 216 | + } |
|
| 217 | + |
|
| 218 | + /** |
|
| 219 | + * @return int |
|
| 220 | + */ |
|
| 221 | + public function getDisplayed() |
|
| 222 | + { |
|
| 223 | + return $this->displayed; |
|
| 224 | + } |
|
| 225 | + |
|
| 226 | + /** |
|
| 227 | + * @param int $displayed |
|
| 228 | + */ |
|
| 229 | + public function setDisplayed($displayed) |
|
| 230 | + { |
|
| 231 | + $this->displayed = $displayed; |
|
| 232 | + } |
|
| 233 | + |
|
| 234 | + /** |
|
| 235 | + * @return \Page |
|
| 236 | + */ |
|
| 237 | + public function getParent() |
|
| 238 | + { |
|
| 239 | + return $this->parent; |
|
| 240 | + } |
|
| 241 | + |
|
| 242 | + /** |
|
| 243 | + * @param \Page $parent |
|
| 244 | + */ |
|
| 245 | + public function setParent($parent) |
|
| 246 | + { |
|
| 247 | + $this->parent = $parent; |
|
| 248 | + } |
|
| 249 | 249 | |
| 250 | 250 | |
| 251 | 251 | } |
@@ -10,8 +10,7 @@ discard block |
||
| 10 | 10 | * @ORM\Table(name="page", indexes={@ORM\Index(name="fk_page_page1_idx", columns={"parent"})}) |
| 11 | 11 | * @ORM\Entity |
| 12 | 12 | */ |
| 13 | -class Page |
|
| 14 | -{ |
|
| 13 | +class Page { |
|
| 15 | 14 | /** |
| 16 | 15 | * @var integer |
| 17 | 16 | * |
@@ -90,160 +89,140 @@ discard block |
||
| 90 | 89 | /** |
| 91 | 90 | * @return int |
| 92 | 91 | */ |
| 93 | - public function getId() |
|
| 94 | - { |
|
| 92 | + public function getId() { |
|
| 95 | 93 | return $this->id; |
| 96 | 94 | } |
| 97 | 95 | |
| 98 | 96 | /** |
| 99 | 97 | * @param int $id |
| 100 | 98 | */ |
| 101 | - public function setId($id) |
|
| 102 | - { |
|
| 99 | + public function setId($id) { |
|
| 103 | 100 | $this->id = $id; |
| 104 | 101 | } |
| 105 | 102 | |
| 106 | 103 | /** |
| 107 | 104 | * @return string |
| 108 | 105 | */ |
| 109 | - public function getGuid() |
|
| 110 | - { |
|
| 106 | + public function getGuid() { |
|
| 111 | 107 | return $this->guid; |
| 112 | 108 | } |
| 113 | 109 | |
| 114 | 110 | /** |
| 115 | 111 | * @param string $guid |
| 116 | 112 | */ |
| 117 | - public function setGuid($guid) |
|
| 118 | - { |
|
| 113 | + public function setGuid($guid) { |
|
| 119 | 114 | $this->guid = $guid; |
| 120 | 115 | } |
| 121 | 116 | |
| 122 | 117 | /** |
| 123 | 118 | * @return string |
| 124 | 119 | */ |
| 125 | - public function getTitleTag() |
|
| 126 | - { |
|
| 120 | + public function getTitleTag() { |
|
| 127 | 121 | return $this->titleTag; |
| 128 | 122 | } |
| 129 | 123 | |
| 130 | 124 | /** |
| 131 | 125 | * @param string $titleTag |
| 132 | 126 | */ |
| 133 | - public function setTitleTag($titleTag) |
|
| 134 | - { |
|
| 127 | + public function setTitleTag($titleTag) { |
|
| 135 | 128 | $this->titleTag = $titleTag; |
| 136 | 129 | } |
| 137 | 130 | |
| 138 | 131 | /** |
| 139 | 132 | * @return string |
| 140 | 133 | */ |
| 141 | - public function getDescriptionTag() |
|
| 142 | - { |
|
| 134 | + public function getDescriptionTag() { |
|
| 143 | 135 | return $this->descriptionTag; |
| 144 | 136 | } |
| 145 | 137 | |
| 146 | 138 | /** |
| 147 | 139 | * @param string $descriptionTag |
| 148 | 140 | */ |
| 149 | - public function setDescriptionTag($descriptionTag) |
|
| 150 | - { |
|
| 141 | + public function setDescriptionTag($descriptionTag) { |
|
| 151 | 142 | $this->descriptionTag = $descriptionTag; |
| 152 | 143 | } |
| 153 | 144 | |
| 154 | 145 | /** |
| 155 | 146 | * @return string |
| 156 | 147 | */ |
| 157 | - public function getTitle() |
|
| 158 | - { |
|
| 148 | + public function getTitle() { |
|
| 159 | 149 | return $this->title; |
| 160 | 150 | } |
| 161 | 151 | |
| 162 | 152 | /** |
| 163 | 153 | * @param string $title |
| 164 | 154 | */ |
| 165 | - public function setTitle($title) |
|
| 166 | - { |
|
| 155 | + public function setTitle($title) { |
|
| 167 | 156 | $this->title = $title; |
| 168 | 157 | } |
| 169 | 158 | |
| 170 | 159 | /** |
| 171 | 160 | * @return string |
| 172 | 161 | */ |
| 173 | - public function getContent() |
|
| 174 | - { |
|
| 162 | + public function getContent() { |
|
| 175 | 163 | return $this->content; |
| 176 | 164 | } |
| 177 | 165 | |
| 178 | 166 | /** |
| 179 | 167 | * @param string $content |
| 180 | 168 | */ |
| 181 | - public function setContent($content) |
|
| 182 | - { |
|
| 169 | + public function setContent($content) { |
|
| 183 | 170 | $this->content = $content; |
| 184 | 171 | } |
| 185 | 172 | |
| 186 | 173 | /** |
| 187 | 174 | * @return int |
| 188 | 175 | */ |
| 189 | - public function getActive() |
|
| 190 | - { |
|
| 176 | + public function getActive() { |
|
| 191 | 177 | return $this->active; |
| 192 | 178 | } |
| 193 | 179 | |
| 194 | 180 | /** |
| 195 | 181 | * @param int $active |
| 196 | 182 | */ |
| 197 | - public function setActive($active) |
|
| 198 | - { |
|
| 183 | + public function setActive($active) { |
|
| 199 | 184 | $this->active = $active; |
| 200 | 185 | } |
| 201 | 186 | |
| 202 | 187 | /** |
| 203 | 188 | * @return int |
| 204 | 189 | */ |
| 205 | - public function getOrder() |
|
| 206 | - { |
|
| 190 | + public function getOrder() { |
|
| 207 | 191 | return $this->order; |
| 208 | 192 | } |
| 209 | 193 | |
| 210 | 194 | /** |
| 211 | 195 | * @param int $order |
| 212 | 196 | */ |
| 213 | - public function setOrder($order) |
|
| 214 | - { |
|
| 197 | + public function setOrder($order) { |
|
| 215 | 198 | $this->order = $order; |
| 216 | 199 | } |
| 217 | 200 | |
| 218 | 201 | /** |
| 219 | 202 | * @return int |
| 220 | 203 | */ |
| 221 | - public function getDisplayed() |
|
| 222 | - { |
|
| 204 | + public function getDisplayed() { |
|
| 223 | 205 | return $this->displayed; |
| 224 | 206 | } |
| 225 | 207 | |
| 226 | 208 | /** |
| 227 | 209 | * @param int $displayed |
| 228 | 210 | */ |
| 229 | - public function setDisplayed($displayed) |
|
| 230 | - { |
|
| 211 | + public function setDisplayed($displayed) { |
|
| 231 | 212 | $this->displayed = $displayed; |
| 232 | 213 | } |
| 233 | 214 | |
| 234 | 215 | /** |
| 235 | 216 | * @return \Page |
| 236 | 217 | */ |
| 237 | - public function getParent() |
|
| 238 | - { |
|
| 218 | + public function getParent() { |
|
| 239 | 219 | return $this->parent; |
| 240 | 220 | } |
| 241 | 221 | |
| 242 | 222 | /** |
| 243 | 223 | * @param \Page $parent |
| 244 | 224 | */ |
| 245 | - public function setParent($parent) |
|
| 246 | - { |
|
| 225 | + public function setParent($parent) { |
|
| 247 | 226 | $this->parent = $parent; |
| 248 | 227 | } |
| 249 | 228 | |
@@ -12,58 +12,58 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | class UserLogs |
| 14 | 14 | { |
| 15 | - /** |
|
| 16 | - * @var integer |
|
| 17 | - * |
|
| 18 | - * @ORM\Column(name="id", type="integer", nullable=false) |
|
| 19 | - * @ORM\Id |
|
| 20 | - * @ORM\GeneratedValue(strategy="NONE") |
|
| 21 | - */ |
|
| 22 | - private $id; |
|
| 15 | + /** |
|
| 16 | + * @var integer |
|
| 17 | + * |
|
| 18 | + * @ORM\Column(name="id", type="integer", nullable=false) |
|
| 19 | + * @ORM\Id |
|
| 20 | + * @ORM\GeneratedValue(strategy="NONE") |
|
| 21 | + */ |
|
| 22 | + private $id; |
|
| 23 | 23 | |
| 24 | - /** |
|
| 25 | - * @var \User |
|
| 26 | - * |
|
| 27 | - * @ORM\Id |
|
| 28 | - * @ORM\GeneratedValue(strategy="NONE") |
|
| 29 | - * @ORM\OneToOne(targetEntity="User") |
|
| 30 | - * @ORM\JoinColumns({ |
|
| 31 | - * @ORM\JoinColumn(name="user_id", referencedColumnName="id") |
|
| 32 | - * }) |
|
| 33 | - */ |
|
| 34 | - private $user; |
|
| 24 | + /** |
|
| 25 | + * @var \User |
|
| 26 | + * |
|
| 27 | + * @ORM\Id |
|
| 28 | + * @ORM\GeneratedValue(strategy="NONE") |
|
| 29 | + * @ORM\OneToOne(targetEntity="User") |
|
| 30 | + * @ORM\JoinColumns({ |
|
| 31 | + * @ORM\JoinColumn(name="user_id", referencedColumnName="id") |
|
| 32 | + * }) |
|
| 33 | + */ |
|
| 34 | + private $user; |
|
| 35 | 35 | |
| 36 | - /** |
|
| 37 | - * @return int |
|
| 38 | - */ |
|
| 39 | - public function getId() |
|
| 40 | - { |
|
| 41 | - return $this->id; |
|
| 42 | - } |
|
| 36 | + /** |
|
| 37 | + * @return int |
|
| 38 | + */ |
|
| 39 | + public function getId() |
|
| 40 | + { |
|
| 41 | + return $this->id; |
|
| 42 | + } |
|
| 43 | 43 | |
| 44 | - /** |
|
| 45 | - * @param int $id |
|
| 46 | - */ |
|
| 47 | - public function setId($id) |
|
| 48 | - { |
|
| 49 | - $this->id = $id; |
|
| 50 | - } |
|
| 44 | + /** |
|
| 45 | + * @param int $id |
|
| 46 | + */ |
|
| 47 | + public function setId($id) |
|
| 48 | + { |
|
| 49 | + $this->id = $id; |
|
| 50 | + } |
|
| 51 | 51 | |
| 52 | - /** |
|
| 53 | - * @return \User |
|
| 54 | - */ |
|
| 55 | - public function getUser() |
|
| 56 | - { |
|
| 57 | - return $this->user; |
|
| 58 | - } |
|
| 52 | + /** |
|
| 53 | + * @return \User |
|
| 54 | + */ |
|
| 55 | + public function getUser() |
|
| 56 | + { |
|
| 57 | + return $this->user; |
|
| 58 | + } |
|
| 59 | 59 | |
| 60 | - /** |
|
| 61 | - * @param \User $user |
|
| 62 | - */ |
|
| 63 | - public function setUser($user) |
|
| 64 | - { |
|
| 65 | - $this->user = $user; |
|
| 66 | - } |
|
| 60 | + /** |
|
| 61 | + * @param \User $user |
|
| 62 | + */ |
|
| 63 | + public function setUser($user) |
|
| 64 | + { |
|
| 65 | + $this->user = $user; |
|
| 66 | + } |
|
| 67 | 67 | |
| 68 | 68 | |
| 69 | 69 | } |
@@ -10,8 +10,7 @@ discard block |
||
| 10 | 10 | * @ORM\Table(name="user_logs", indexes={@ORM\Index(name="fk_user_infos_user_idx", columns={"user_id"})}) |
| 11 | 11 | * @ORM\Entity |
| 12 | 12 | */ |
| 13 | -class UserLogs |
|
| 14 | -{ |
|
| 13 | +class UserLogs { |
|
| 15 | 14 | /** |
| 16 | 15 | * @var integer |
| 17 | 16 | * |
@@ -36,32 +35,28 @@ discard block |
||
| 36 | 35 | /** |
| 37 | 36 | * @return int |
| 38 | 37 | */ |
| 39 | - public function getId() |
|
| 40 | - { |
|
| 38 | + public function getId() { |
|
| 41 | 39 | return $this->id; |
| 42 | 40 | } |
| 43 | 41 | |
| 44 | 42 | /** |
| 45 | 43 | * @param int $id |
| 46 | 44 | */ |
| 47 | - public function setId($id) |
|
| 48 | - { |
|
| 45 | + public function setId($id) { |
|
| 49 | 46 | $this->id = $id; |
| 50 | 47 | } |
| 51 | 48 | |
| 52 | 49 | /** |
| 53 | 50 | * @return \User |
| 54 | 51 | */ |
| 55 | - public function getUser() |
|
| 56 | - { |
|
| 52 | + public function getUser() { |
|
| 57 | 53 | return $this->user; |
| 58 | 54 | } |
| 59 | 55 | |
| 60 | 56 | /** |
| 61 | 57 | * @param \User $user |
| 62 | 58 | */ |
| 63 | - public function setUser($user) |
|
| 64 | - { |
|
| 59 | + public function setUser($user) { |
|
| 65 | 60 | $this->user = $user; |
| 66 | 61 | } |
| 67 | 62 | |
@@ -6,12 +6,12 @@ |
||
| 6 | 6 | |
| 7 | 7 | class DefaultControllerTest extends WebTestCase |
| 8 | 8 | { |
| 9 | - public function testIndex() |
|
| 10 | - { |
|
| 11 | - $client = static::createClient(); |
|
| 9 | + public function testIndex() |
|
| 10 | + { |
|
| 11 | + $client = static::createClient(); |
|
| 12 | 12 | |
| 13 | - $crawler = $client->request('GET', '/'); |
|
| 13 | + $crawler = $client->request('GET', '/'); |
|
| 14 | 14 | |
| 15 | - $this->assertContains('Hello World', $client->getResponse()->getContent()); |
|
| 16 | - } |
|
| 15 | + $this->assertContains('Hello World', $client->getResponse()->getContent()); |
|
| 16 | + } |
|
| 17 | 17 | } |
@@ -4,10 +4,8 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Symfony\Bundle\RibsAdminBundle\Test\WebTestCase; |
| 6 | 6 | |
| 7 | -class DefaultControllerTest extends WebTestCase |
|
| 8 | -{ |
|
| 9 | - public function testIndex() |
|
| 10 | - { |
|
| 7 | +class DefaultControllerTest extends WebTestCase { |
|
| 8 | + public function testIndex() { |
|
| 11 | 9 | $client = static::createClient(); |
| 12 | 10 | |
| 13 | 11 | $crawler = $client->request('GET', '/'); |
@@ -4,10 +4,8 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Symfony\Component\HttpKernel\Bundle\Bundle; |
| 6 | 6 | |
| 7 | -class RibsAdminBundle extends Bundle |
|
| 8 | -{ |
|
| 9 | - public function getParent() |
|
| 10 | - { |
|
| 7 | +class RibsAdminBundle extends Bundle { |
|
| 8 | + public function getParent() { |
|
| 11 | 9 | return 'FOSUserBundle'; |
| 12 | 10 | } |
| 13 | 11 | } |
@@ -9,15 +9,13 @@ discard block |
||
| 9 | 9 | use Symfony\Component\Security\Core\Exception\AuthenticationException; |
| 10 | 10 | use Symfony\Component\Security\Core\Security; |
| 11 | 11 | |
| 12 | -class LoginController extends FOSController |
|
| 13 | -{ |
|
| 12 | +class LoginController extends FOSController { |
|
| 14 | 13 | /** |
| 15 | 14 | * @param Request $request |
| 16 | 15 | * |
| 17 | 16 | * @return Response |
| 18 | 17 | */ |
| 19 | - public function loginAction(Request $request) |
|
| 20 | - { |
|
| 18 | + public function loginAction(Request $request) { |
|
| 21 | 19 | /** @var $session \Symfony\Component\HttpFoundation\Session\Session */ |
| 22 | 20 | $session = $request->getSession(); |
| 23 | 21 | |
@@ -27,10 +25,12 @@ discard block |
||
| 27 | 25 | // get the error if any (works with forward and redirect -- see below) |
| 28 | 26 | if ($request->attributes->has($authErrorKey)) { |
| 29 | 27 | $error = $request->attributes->get($authErrorKey); |
| 30 | - } else if (null !== $session && $session->has($authErrorKey)) { |
|
| 28 | + } |
|
| 29 | + else if (null !== $session && $session->has($authErrorKey)) { |
|
| 31 | 30 | $error = $session->get($authErrorKey); |
| 32 | 31 | $session->remove($authErrorKey); |
| 33 | - } else { |
|
| 32 | + } |
|
| 33 | + else { |
|
| 34 | 34 | $error = null; |
| 35 | 35 | } |
| 36 | 36 | |
@@ -74,13 +74,11 @@ discard block |
||
| 74 | 74 | return $this->render("@RibsAdmin/login/login.html.twig", $data); |
| 75 | 75 | } |
| 76 | 76 | |
| 77 | - public function checkAction() |
|
| 78 | - { |
|
| 77 | + public function checkAction() { |
|
| 79 | 78 | throw new \RuntimeException('You must configure the check path to be handled by the firewall using form_login in your security firewall configuration.'); |
| 80 | 79 | } |
| 81 | 80 | |
| 82 | - public function logoutAction() |
|
| 83 | - { |
|
| 81 | + public function logoutAction() { |
|
| 84 | 82 | throw new \RuntimeException('You must activate the logout in your security firewall configuration.'); |
| 85 | 83 | } |
| 86 | 84 | } |
@@ -5,8 +5,7 @@ |
||
| 5 | 5 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
| 6 | 6 | use Symfony\Component\HttpFoundation\Response; |
| 7 | 7 | |
| 8 | -class NavigationBuilderController extends Controller |
|
| 9 | -{ |
|
| 8 | +class NavigationBuilderController extends Controller { |
|
| 10 | 9 | /** |
| 11 | 10 | * @return Response function that display the left navigation mapped by user rights |
| 12 | 11 | */ |
@@ -5,8 +5,7 @@ discard block |
||
| 5 | 5 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
| 6 | 6 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
| 7 | 7 | |
| 8 | -class DefaultController extends Controller |
|
| 9 | -{ |
|
| 8 | +class DefaultController extends Controller { |
|
| 10 | 9 | /** |
| 11 | 10 | * @Route("/index", name="ribsadmin_index") |
| 12 | 11 | * @Route("/access-rights-management", name="ribsadmin_access_rights") |
@@ -14,8 +13,7 @@ discard block |
||
| 14 | 13 | * @Route("/navigation", name="ribsadmin_navigation") |
| 15 | 14 | * |
| 16 | 15 | */ |
| 17 | - public function indexAction() |
|
| 18 | - { |
|
| 16 | + public function indexAction() { |
|
| 19 | 17 | return $this->render('RibsAdminBundle:Default:index.html.twig'); |
| 20 | 18 | } |
| 21 | 19 | } |