Code Duplication    Length = 21-21 lines in 2 locations

src/Madkom/RegistryApplication/Domain/CarManagement/Car.php 1 location

@@ 76-96 (lines=21) @@
73
     * @param           $city
74
     * @param           $department
75
     */
76
    private function __construct(
77
        $id,
78
        $responsiblePerson,
79
        $model,
80
        $brand,
81
        $registrationNumber,
82
        $productionDate,
83
        $warrantyPeriod,
84
        $city,
85
        $department
86
    ) {
87
        $this->id = $id;
88
        $this->responsiblePerson = $responsiblePerson;
89
        $this->model = $model;
90
        $this->brand = $brand;
91
        $this->registrationNumber = $registrationNumber;
92
        $this->productionDate = $productionDate;
93
        $this->warrantyPeriod = $warrantyPeriod;
94
        $this->city = $city;
95
        $this->department = $department;
96
    }
97
98
    /**
99
     * @param           $id

src/Madkom/RegistryApplication/Application/CarManagement/CarDTO.php 1 location

@@ 35-55 (lines=21) @@
32
     * @param $city
33
     * @param $department
34
     */
35
    public function __construct(
36
        $id,
37
        $responsiblePerson,
38
        $model,
39
        $brand,
40
        $registrationNumber,
41
        $productionDate,
42
        $warrantyPeriod,
43
        $city,
44
        $department
45
    ) {
46
        $this->id = $id;
47
        $this->responsiblePerson = $responsiblePerson;
48
        $this->model = $model;
49
        $this->brand = $brand;
50
        $this->registrationNumber = $registrationNumber;
51
        $this->productionDate = $productionDate;
52
        $this->warrantyPeriod = $warrantyPeriod;
53
        $this->city = $city;
54
        $this->department = $department;
55
    }
56
}
57