示例#1
0
 /**
  * @param Contact $contact
  */
 public function removeAssociate(Contact $contact)
 {
     $this->associate->removeElement($contact);
 }
示例#2
0
 /**
  * @param Contact $contact
  */
 public function addAssociate(Contact $contact)
 {
     if (!$this->associate->contains($contact)) {
         $this->associate->add($contact);
     }
 }
示例#3
0
 /**
  * @param Collections\Collection $collection
  */
 public function removeContact(Collections\Collection $collection)
 {
     foreach ($collection as $singleContact) {
         $this->contact->removeElement($singleContact);
     }
 }