Code Duplication    Length = 21-23 lines in 2 locations

src/WorldOfWarcraft/AchievementApi/Achievement/Model/AchievementValueObject.php 1 location

@@ 69-91 (lines=23) @@
66
     * @param bool                    $accountWide
67
     * @param int                     $factionId
68
     */
69
    public function __construct(
70
        $id,
71
        $title,
72
        $points,
73
        $description,
74
        $reward,
75
        $rewardItems,
76
        $icon,
77
        $criteria,
78
        $accountWide,
79
        $factionId
80
    ) {
81
        $this->id = $id;
82
        $this->title = $title;
83
        $this->points = $points;
84
        $this->description = $description;
85
        $this->reward = $reward;
86
        $this->rewardItems = $rewardItems;
87
        $this->icon = $icon;
88
        $this->criteria = $criteria;
89
        $this->accountWide = $accountWide;
90
        $this->factionId = $factionId;
91
    }
92
93
    /**
94
     * @return int

src/WorldOfWarcraft/CharacterProfileApi/Feed/Model/AchievementValueObject.php 1 location

@@ 71-91 (lines=21) @@
68
     * @param bool                  $accountWide
69
     * @param int                   $factionId
70
     */
71
    public function __construct(
72
        $id,
73
        $title,
74
        $points,
75
        $description,
76
        $rewardItems,
77
        $icon,
78
        $criteria,
79
        $accountWide,
80
        $factionId
81
    ) {
82
        $this->id = $id;
83
        $this->title = $title;
84
        $this->points = $points;
85
        $this->description = $description;
86
        $this->rewardItems = $rewardItems;
87
        $this->icon = $icon;
88
        $this->criteria = $criteria;
89
        $this->accountWide = $accountWide;
90
        $this->factionId = $factionId;
91
    }
92
93
    /**
94
     * @return int