| @@ 138-145 (lines=8) @@ | ||
| 135 | * |
|
| 136 | * @return Country |
|
| 137 | */ |
|
| 138 | public function removeItem(Item $item) |
|
| 139 | { |
|
| 140 | if ($this->items->contains($item)) { |
|
| 141 | $this->items->removeElement($item); |
|
| 142 | $item->setCountry(null); |
|
| 143 | } |
|
| 144 | ||
| 145 | return $this; |
|
| 146 | } |
|
| 147 | ||
| 148 | /** |
|
| @@ 123-130 (lines=8) @@ | ||
| 120 | * |
|
| 121 | * @return Country |
|
| 122 | */ |
|
| 123 | public function addItem(Item $item) |
|
| 124 | { |
|
| 125 | if (!$this->items->contains($item)) { |
|
| 126 | $this->items->add($item); |
|
| 127 | $item->setCountry($this); |
|
| 128 | } |
|
| 129 | ||
| 130 | return $this; |
|
| 131 | } |
|
| 132 | ||
| 133 | /** |
|