Code Duplication    Length = 3-3 lines in 4 locations

src/PlaygroundGame/Entity/QuizAnswer.php 1 location

@@ 320-322 (lines=3) @@
317
            $this->explanation = $data['explanation'];
318
        }
319
320
        if (isset($data['type']) && $data['type'] !== null) {
321
            $this->type = $data['type'];
322
        }
323
324
        if (isset($data['position']) && $data['position'] !== null) {
325
            $this->position = $data['position'];

src/PlaygroundGame/Entity/QuizQuestion.php 2 locations

@@ 543-545 (lines=3) @@
540
            $this->question = $data['question'];
541
        }
542
543
        if (isset($data['hint']) && $data['hint'] !== null) {
544
            $this->hint = $data['hint'];
545
        }
546
547
        if (isset($data['type']) && $data['type'] !== null) {
548
            $this->type = $data['type'];
@@ 547-549 (lines=3) @@
544
            $this->hint = $data['hint'];
545
        }
546
547
        if (isset($data['type']) && $data['type'] !== null) {
548
            $this->type = $data['type'];
549
        }
550
551
        if (isset($data['position']) && $data['position'] !== null) {
552
            $this->position = $data['position'];

src/PlaygroundGame/Entity/Prize.php 1 location

@@ 349-351 (lines=3) @@
346
            $this->title = $data['title'];
347
        }
348
349
        if (isset($data['qty']) && $data['qty'] !== null) {
350
            $this->qty = $data['qty'];
351
        }
352
353
        if (isset($data['identifier']) && $data['identifier'] !== null) {
354
            $this->identifier = $data['identifier'];