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