| @@ 725-732 (lines=8) @@ | ||
| 722 | * |
|
| 723 | * @return B2bCustomer |
|
| 724 | */ |
|
| 725 | public function addEmail(B2bCustomerEmail $email) |
|
| 726 | { |
|
| 727 | if (!$this->emails->contains($email)) { |
|
| 728 | $this->emails->add($email); |
|
| 729 | $email->setOwner($this); |
|
| 730 | } |
|
| 731 | return $this; |
|
| 732 | } |
|
| 733 | /** |
|
| 734 | * Remove email |
|
| 735 | * |
|
| @@ 1269-1277 (lines=9) @@ | ||
| 1266 | * |
|
| 1267 | * @return Lead |
|
| 1268 | */ |
|
| 1269 | public function addEmail(LeadEmail $email) |
|
| 1270 | { |
|
| 1271 | if (!$this->emails->contains($email)) { |
|
| 1272 | $this->emails->add($email); |
|
| 1273 | $email->setOwner($this); |
|
| 1274 | } |
|
| 1275 | ||
| 1276 | return $this; |
|
| 1277 | } |
|
| 1278 | ||
| 1279 | /** |
|
| 1280 | * Remove email |
|