Code Duplication    Length = 8-8 lines in 2 locations

src/Entity/Country.php 2 locations

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