| @@ 627-634 (lines=8) @@ | ||
| 624 | * |
|
| 625 | * @return B2bCustomer |
|
| 626 | */ |
|
| 627 | public function addPhone(B2bCustomerPhone $phone) |
|
| 628 | { |
|
| 629 | if (!$this->phones->contains($phone)) { |
|
| 630 | $this->phones->add($phone); |
|
| 631 | $phone->setOwner($this); |
|
| 632 | } |
|
| 633 | return $this; |
|
| 634 | } |
|
| 635 | /** |
|
| 636 | * Remove phone |
|
| 637 | * |
|
| @@ 1160-1168 (lines=9) @@ | ||
| 1157 | * |
|
| 1158 | * @return Lead |
|
| 1159 | */ |
|
| 1160 | public function addPhone(LeadPhone $phone) |
|
| 1161 | { |
|
| 1162 | if (!$this->phones->contains($phone)) { |
|
| 1163 | $this->phones->add($phone); |
|
| 1164 | $phone->setOwner($this); |
|
| 1165 | } |
|
| 1166 | ||
| 1167 | return $this; |
|
| 1168 | } |
|
| 1169 | ||
| 1170 | /** |
|
| 1171 | * Remove phone |
|