Code Duplication    Length = 8-8 lines in 2 locations

src/Entity/Country.php 2 locations

@@ 189-196 (lines=8) @@
186
     *
187
     * @return Country
188
     */
189
    public function addTranslation(CountryTranslation $trans)
190
    {
191
        if (!$this->translations->contains($trans)) {
192
            $this->translations->add($trans);
193
            $trans->setObject($this);
194
        }
195
196
        return $this;
197
    }
198
199
    /**
@@ 204-211 (lines=8) @@
201
     *
202
     * @return Country
203
     */
204
    public function removeTranslation(CountryTranslation $trans)
205
    {
206
        if ($this->translations->contains($trans)) {
207
            $this->translations->removeElement($trans);
208
            $trans->setObject(null);
209
        }
210
211
        return $this;
212
    }
213
214
    /**