public function removeElectronicAddress(ElectronicAddress $electronicAddress)
    {
        $this->electronicAddresses->removeElement($electronicAddress);
        if ($electronicAddress === $this->primaryElectronicAddress) {
            $this->primaryElectronicAddress = null;
        }
    }
public function removeElectronicAddress(ElectronicAddress $electronicAddress)
    {
        $this->electronicAddresses->removeElement($electronicAddress);
        if ($electronicAddress === $this->primaryElectronicAddress) {
            $this->primaryElectronicAddress = null;
        }
    }
public function removeElectronicAddress ( ElectronicAddress $ electronicAddress ) { $ this -> electronicAddresses -> removeElement ( $ electronicAddress ) ; if ( $ electronicAddress === $ this -> primaryElectronicAddress ) { $ this -> primaryElectronicAddress = null ; } }
Removes the given electronic address from this person.

@param ElectronicAddress $electronicAddress The electronic address
@return void
Removes the given electronic address from this person .