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