Beispiel #1
0
 /**
  * Removes the given electronic address from this person.
  *
  * @param \TYPO3\Party\Domain\Model\ElectronicAddress $electronicAddress The electronic address
  * @return void
  */
 public function removeElectronicAddress(\TYPO3\Party\Domain\Model\ElectronicAddress $electronicAddress)
 {
     $this->electronicAddresses->removeElement($electronicAddress);
     if ($electronicAddress === $this->primaryElectronicAddress) {
         unset($this->primaryElectronicAddress);
     }
 }
Beispiel #2
0
 /**
  * Removes the given electronic address from this person.
  *
  * @param \TYPO3\Party\Domain\Model\ElectronicAddress $electronicAddress The electronic address
  * @return void
  */
 public function removeElectronicAddress(ElectronicAddress $electronicAddress)
 {
     $this->electronicAddresses->removeElement($electronicAddress);
     if ($electronicAddress === $this->primaryElectronicAddress) {
         $this->primaryElectronicAddress = NULL;
     }
 }