Code Duplication    Length = 3-3 lines in 2 locations

src/PlaygroundGame/Entity/PrizeCategory.php 1 location

@@ 236-238 (lines=3) @@
233
            $this->title = $data['title'];
234
        }
235
236
        if (isset($data['identifier']) && $data['identifier'] !== null) {
237
            $this->identifier = $data['identifier'];
238
        }
239
240
        if (isset($data['active']) && $data['active'] !== null) {
241
            $this->active = $data['active'];

src/PlaygroundGame/Entity/Prize.php 1 location

@@ 353-355 (lines=3) @@
350
            $this->qty = $data['qty'];
351
        }
352
353
        if (isset($data['identifier']) && $data['identifier'] !== null) {
354
            $this->identifier = $data['identifier'];
355
        }
356
357
        if (isset($data['unitPrice']) && $data['unitPrice'] !== null) {
358
            $this->unitPrice = $data['unitPrice'];