@@ 975-983 (lines=9) @@ | ||
972 | * |
|
973 | * @return Lead |
|
974 | */ |
|
975 | public function addOpportunity(Opportunity $opportunity) |
|
976 | { |
|
977 | if (!$this->opportunities->contains($opportunity)) { |
|
978 | $opportunity->setLead($this); |
|
979 | $this->opportunities->add($opportunity); |
|
980 | } |
|
981 | ||
982 | return $this; |
|
983 | } |
|
984 | ||
985 | /** |
|
986 | * @param Opportunity $opportunity |
|
@@ 990-998 (lines=9) @@ | ||
987 | * |
|
988 | * @return Lead |
|
989 | */ |
|
990 | public function removeOpportunity(Opportunity $opportunity) |
|
991 | { |
|
992 | if ($this->opportunities->contains($opportunity)) { |
|
993 | $this->opportunities->removeElement($opportunity); |
|
994 | $opportunity->setLead(null); |
|
995 | } |
|
996 | ||
997 | return $this; |
|
998 | } |
|
999 | ||
1000 | /** |
|
1001 | * @return string |