/** * 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); } }
/** * 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); } }