示例#1
0
 /**
  * Sets (and adds if necessary) the primary electronic address of this person.
  *
  * @param \TYPO3\Party\Domain\Model\ElectronicAddress $electronicAddress The electronic address
  * @return void
  */
 public function setPrimaryElectronicAddress(\TYPO3\Party\Domain\Model\ElectronicAddress $electronicAddress)
 {
     $this->primaryElectronicAddress = $electronicAddress;
     if (!$this->electronicAddresses->contains($electronicAddress)) {
         $this->electronicAddresses->add($electronicAddress);
     }
 }
示例#2
0
 /**
  * Sets (and adds if necessary) the primary electronic address of this person.
  *
  * @param \TYPO3\Party\Domain\Model\ElectronicAddress $electronicAddress The electronic address
  * @return void
  */
 public function setPrimaryElectronicAddress(ElectronicAddress $electronicAddress)
 {
     $this->primaryElectronicAddress = $electronicAddress;
     if (!$this->electronicAddresses->contains($electronicAddress)) {
         $this->electronicAddresses->add($electronicAddress);
     }
 }