Code Duplication    Length = 10-10 lines in 2 locations

src/action/AbstractAction.php 1 location

@@ 148-157 (lines=10) @@
145
        return $this->time;
146
    }
147
148
    public function setId($id)
149
    {
150
        if ($this->id === $id) {
151
            return;
152
        }
153
        if ($this->id !== null) {
154
            throw new \Exception('cannot reassign action id');
155
        }
156
        $this->id = $id;
157
    }
158
159
    public function setSale(SaleInterface $sale)
160
    {

src/sale/Sale.php 1 location

@@ 89-98 (lines=10) @@
86
        return $this->time;
87
    }
88
89
    public function setId($id)
90
    {
91
        if ($this->id === $id) {
92
            return;
93
        }
94
        if ($this->id !== null) {
95
            throw new \Exception('cannot reassign sale id');
96
        }
97
        $this->id = $id;
98
    }
99
}
100