SelfEvalPrestaQuiz.php 9.2 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
<?php

namespace App\Entity;

use Doctrine\ORM\Mapping as ORM;
use Ramsey\Uuid\Doctrine\UuidGenerator;
use Symfony\Component\Serializer\Annotation\Groups;

/**
 * @ORM\Entity
 * @ORM\Table(name="selfevalprestaquiz")
 */
class SelfEvalPrestaQuiz
{
    /*
     * This class is really just about storing results of a form in a database.
     * Attributes are not going to be part of any logic code.
     * I opt to set all attributes public to save coding time.
     */

    /**
     * @var \Ramsey\Uuid\UuidInterface
     *
     * @ORM\Id
     * @ORM\Column(type="uuid", unique=true)
     * @ORM\GeneratedValue(strategy="CUSTOM")
     * @ORM\CustomIdGenerator(class=UuidGenerator::class)
     * @Groups({"read"})
     */
    protected $id;

    /**
     * @var int|null
Yvon committed
34
     * @ORM\Column(type="integer", nullable=true)
35 36 37 38
     */
    public $accessib_geophy;
    /**
     * @var int|null
Yvon committed
39
     * @ORM\Column(type="integer", nullable=true)
40 41 42 43
     */
    public $accessib_tempor;
    /**
     * @var int|null
Yvon committed
44
     * @ORM\Column(type="integer", nullable=true)
45 46 47 48
     */
    public $accessib_edupop;
    /**
     * @var int|null
Yvon committed
49
     * @ORM\Column(type="integer", nullable=true)
50 51 52 53
     */
    public $accessib_divers;
    /**
     * @var int|null
Yvon committed
54
     * @ORM\Column(type="integer", nullable=true)
55 56 57 58 59
     */
    public $accessib_vulner;

    /**
     * @var string|null
Yvon committed
60
     * @ORM\Column(type="text", nullable=true)
61 62 63 64
     */
    public $accessib_geophy_comment;
    /**
     * @var string|null
Yvon committed
65
     * @ORM\Column(type="text", nullable=true)
66 67 68 69
     */
    public $accessib_tempor_comment;
    /**
     * @var string|null
Yvon committed
70
     * @ORM\Column(type="text", nullable=true)
71 72 73 74
     */
    public $accessib_edupop_comment;
    /**
     * @var string|null
Yvon committed
75
     * @ORM\Column(type="text", nullable=true)
76 77 78 79
     */
    public $accessib_divers_comment;
    /**
     * @var string|null
Yvon committed
80
     * @ORM\Column(type="text", nullable=true)
81 82 83
     */
    public $accessib_vulner_comment;

84 85
    /**
     * @var int|null
Yvon committed
86
     * @ORM\Column(type="integer", nullable=true)
87 88 89 90
     */
    public $bienetre_format;
    /**
     * @var string|null
Yvon committed
91
     * @ORM\Column(type="text", nullable=true)
92 93 94 95
     */
    public $bienetre_format_comment;
    /**
     * @var int|null
Yvon committed
96
     * @ORM\Column(type="integer", nullable=true)
97 98 99 100
     */
    public $bienetre_impgou;
    /**
     * @var string|null
Yvon committed
101
     * @ORM\Column(type="text", nullable=true)
102 103 104 105
     */
    public $bienetre_impgou_comment;
    /**
     * @var int|null
Yvon committed
106
     * @ORM\Column(type="integer", nullable=true)
107 108 109 110
     */
    public $bienetre_bienet;
    /**
     * @var string|null
Yvon committed
111
     * @ORM\Column(type="text", nullable=true)
112 113 114 115
     */
    public $bienetre_bienet_comment;
    /**
     * @var int|null
Yvon committed
116
     * @ORM\Column(type="integer", nullable=true)
117 118 119 120
     */
    public $bienetre_recben;
    /**
     * @var string|null
Yvon committed
121
     * @ORM\Column(type="text", nullable=true)
122 123 124 125
     */
    public $bienetre_recben_comment;
    /**
     * @var int|null
Yvon committed
126
     * @ORM\Column(type="integer", nullable=true)
127 128 129 130
     */
    public $transpar_jusrem;
    /**
     * @var string|null
Yvon committed
131
     * @ORM\Column(type="text", nullable=true)
132 133 134 135
     */
    public $transpar_jusrem_comment;
    /**
     * @var int|null
Yvon committed
136
     * @ORM\Column(type="integer", nullable=true)
137 138 139 140
     */
    public $transpar_transp;
    /**
     * @var string|null
Yvon committed
141
     * @ORM\Column(type="text", nullable=true)
142 143 144 145
     */
    public $transpar_transp_comment;
    /**
     * @var int|null
Yvon committed
146
     * @ORM\Column(type="integer", nullable=true)
147 148 149 150
     */
    public $transpar_relpro;
    /**
     * @var string|null
Yvon committed
151
     * @ORM\Column(type="text", nullable=true)
152 153 154 155
     */
    public $transpar_relpro_comment;
    /**
     * @var int|null
Yvon committed
156
     * @ORM\Column(type="integer", nullable=true)
157 158 159 160
     */
    public $disagdur_labels;
    /**
     * @var string|null
Yvon committed
161
     * @ORM\Column(type="text", nullable=true)
162 163 164 165
     */
    public $disagdur_labels_comment;
    /**
     * @var int|null
Yvon committed
166
     * @ORM\Column(type="integer", nullable=true)
167 168 169 170
     */
    public $disagdur_condur;
    /**
     * @var string|null
Yvon committed
171
     * @ORM\Column(type="text", nullable=true)
172 173 174 175
     */
    public $disagdur_condur_comment;
    /**
     * @var int|null
Yvon committed
176
     * @ORM\Column(type="integer", nullable=true)
177 178 179 180
     */
    public $proagdur_labels;
    /**
     * @var string|null
Yvon committed
181
     * @ORM\Column(type="text", nullable=true)
182 183 184 185
     */
    public $proagdur_labels_comment;
    /**
     * @var int|null
Yvon committed
186
     * @ORM\Column(type="integer", nullable=true)
187 188 189 190
     */
    public $proagdur_valbio;
    /**
     * @var string|null
Yvon committed
191
     * @ORM\Column(type="text", nullable=true)
192 193 194 195
     */
    public $proagdur_valbio_comment;
    /**
     * @var int|null
Yvon committed
196
     * @ORM\Column(type="integer", nullable=true)
197 198 199 200
     */
    public $proagdur_ecorec;
    /**
     * @var string|null
Yvon committed
201
     * @ORM\Column(type="text", nullable=true)
202 203 204 205
     */
    public $proagdur_ecorec_comment;
    /**
     * @var int|null
Yvon committed
206
     * @ORM\Column(type="integer", nullable=true)
207 208 209 210
     */
    public $proagdur_pertes;
    /**
     * @var string|null
Yvon committed
211
     * @ORM\Column(type="text", nullable=true)
212 213 214 215
     */
    public $proagdur_pertes_comment;
    /**
     * @var int|null
Yvon committed
216
     * @ORM\Column(type="integer", nullable=true)
217 218 219 220
     */
    public $proagdur_climat;
    /**
     * @var string|null
Yvon committed
221
     * @ORM\Column(type="text", nullable=true)
222 223 224 225
     */
    public $proagdur_climat_comment;
    /**
     * @var int|null
Yvon committed
226
     * @ORM\Column(type="integer", nullable=true)
227 228 229 230
     */
    public $proagdur_geneti;
    /**
     * @var string|null
Yvon committed
231
     * @ORM\Column(type="text", nullable=true)
232 233 234 235
     */
    public $proagdur_geneti_comment;
    /**
     * @var int|null
Yvon committed
236
     * @ORM\Column(type="integer", nullable=true)
237 238 239 240
     */
    public $proagdur_prosol;
    /**
     * @var string|null
Yvon committed
241
     * @ORM\Column(type="text", nullable=true)
242 243 244 245
     */
    public $proagdur_prosol_comment;
    /**
     * @var int|null
Yvon committed
246
     * @ORM\Column(type="integer", nullable=true)
247 248 249 250
     */
    public $localite_probru;
    /**
     * @var string|null
Yvon committed
251
     * @ORM\Column(type="text", nullable=true)
252 253 254 255
     */
    public $localite_probru_comment;
    /**
     * @var int|null
Yvon committed
256
     * @ORM\Column(type="integer", nullable=true)
257 258 259 260
     */
    public $localite_protra;
    /**
     * @var string|null
Yvon committed
261
     * @ORM\Column(type="text", nullable=true)
262 263 264 265 266
     */
    public $localite_protra_comment;

    /**
     * @var int|null
Yvon committed
267
     * @ORM\Column(type="integer", nullable=true)
268 269 270 271
     */
    public $accessib_global;
    /**
     * @var string|null
Yvon committed
272
     * @ORM\Column(type="text", nullable=true)
273 274 275 276 277
     */
    public $accessib_global_comment;

    /**
     * @var int|null
Yvon committed
278
     * @ORM\Column(type="integer", nullable=true)
279 280 281 282
     */
    public $bienetre_global;
    /**
     * @var string|null
Yvon committed
283
     * @ORM\Column(type="text", nullable=true)
284 285 286 287 288
     */
    public $bienetre_global_comment;

    /**
     * @var int|null
Yvon committed
289
     * @ORM\Column(type="integer", nullable=true)
290 291 292 293
     */
    public $transpar_global;
    /**
     * @var string|null
Yvon committed
294
     * @ORM\Column(type="text", nullable=true)
295 296 297 298 299
     */
    public $transpar_global_comment;

    /**
     * @var int|null
Yvon committed
300
     * @ORM\Column(type="integer", nullable=true)
301 302 303 304
     */
    public $disagdur_global;
    /**
     * @var string|null
Yvon committed
305
     * @ORM\Column(type="text", nullable=true)
306 307 308 309 310
     */
    public $disagdur_global_comment;

    /**
     * @var int|null
Yvon committed
311
     * @ORM\Column(type="integer", nullable=true)
312 313 314 315
     */
    public $proagdur_global;
    /**
     * @var string|null
Yvon committed
316
     * @ORM\Column(type="text", nullable=true)
317 318 319 320 321
     */
    public $proagdur_global_comment;

    /**
     * @var int|null
Yvon committed
322
     * @ORM\Column(type="integer", nullable=true)
323 324 325 326
     */
    public $localite_global;
    /**
     * @var string|null
Yvon committed
327
     * @ORM\Column(type="text", nullable=true)
328 329
     */
    public $localite_global_comment;
330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395
    
    /**
     * @var int|null
     * @ORM\Column(type="integer", nullable=true)
     */
    public $review_accessib_global;
    /**
     * @var string|null
     * @ORM\Column(type="text", nullable=true)
     */
    public $review_accessib_global_comment;

    /**
     * @var int|null
     * @ORM\Column(type="integer", nullable=true)
     */
    public $review_bienetre_global;
    /**
     * @var string|null
     * @ORM\Column(type="text", nullable=true)
     */
    public $review_bienetre_global_comment;

    /**
     * @var int|null
     * @ORM\Column(type="integer", nullable=true)
     */
    public $review_transpar_global;
    /**
     * @var string|null
     * @ORM\Column(type="text", nullable=true)
     */
    public $review_transpar_global_comment;

    /**
     * @var int|null
     * @ORM\Column(type="integer", nullable=true)
     */
    public $review_disagdur_global;
    /**
     * @var string|null
     * @ORM\Column(type="text", nullable=true)
     */
    public $review_disagdur_global_comment;

    /**
     * @var int|null
     * @ORM\Column(type="integer", nullable=true)
     */
    public $review_proagdur_global;
    /**
     * @var string|null
     * @ORM\Column(type="text", nullable=true)
     */
    public $review_proagdur_global_comment;

    /**
     * @var int|null
     * @ORM\Column(type="integer", nullable=true)
     */
    public $review_localite_global;
    /**
     * @var string|null
     * @ORM\Column(type="text", nullable=true)
     */
    public $review_localite_global_comment;
396 397 398 399 400 401
    /**
     * As the form been fully submitted?
     * @var bool
     * @ORM\Column(type="boolean", nullable=false, options={"default" : false})
     */
    public $isSubmitted;
402
}