Set company phone.

@param int $areaCode    DDD telephone.
@param int $number      Telephone number.
@param int $countryCode Country code.

@return \Moip\Resource\Account
199514
public function setCompanyPhone($areaCode, $number, $countryCode = 55)
    {
        $this->initializeCompany();
        $this->data->company->phone = new stdClass();
        $this->data->company->phone->countryCode = $countryCode;
        $this->data->company->phone->areaCode = $areaCode;
        $this->data->company->phone->number = $number;

        return $this;
    }
178561
public function setPhone($phone)
    {
        if (!empty($phone) && is_string($phone) && ctype_print($phone)) {
            $this->phone = trim($phone);
        }

        return $this;
    }
97790
public function checkVat($countryCode, $vatNumber)
    {
        try {
            return $this->getSoapClient()->checkVat(
                array(
                    'countryCode' => $countryCode,
                    'vatNumber' => $vatNumber
                )
            );
        } catch (SoapFault $e) {
            throw new ViesException('Error communicating with VIES service', 0, $e);
        }
    }
385618
public function lookupTimeZonesForNumber(PhoneNumber $number)
    {
        $phonePrefix = $number->getCountryCode() . PhoneNumberUtil::getInstance()->getNationalSignificantNumber(
                $number
            );

        return $this->lookupTimeZonesForNumberKey($phonePrefix);
    }
220350
public function populateCountry($countryCode)
    {
        $rootLocation = $this
            ->locationPopulatorAdapter
            ->populate($countryCode);

        $this
            ->locationObjectManager
            ->persist($rootLocation);

        $this
            ->locationObjectManager
            ->flush($rootLocation);

        return $this;
    }
1213775
public function setAddress(string $street, string $city, string $stateCode, string $countryCode, string $zip): self
    {
        //$street1 = "";
        $street2 = "";

        if(strpos($street, "\n") !== false)
        {
            $parts = array_map("trim", explode("\n", $street));

            $street1 = $parts[0];
            $street2 = $parts[1];
        }
        elseif(strpos($street, "\r\n") !== false)
        {
            $parts = array_map("trim", explode("\r\n", $street));

            $street1 = $parts[0];
            $street2 = $parts[1];
        }
        else
        {
            $street1 = $street;
        }

        $country = Country::getByCode($countryCode);
        $state = State::getByCode($country, $stateCode);

        $this->{"street1"} = $street1;
        $this->{"street2"} = $street2;
        $this->{"city"} = $city;
        $this->{"countryId"} = $country->getId();
        $this->{"stateId"} = $state->getId();
        $this->{"zipCode"} = $zip;

        /** @var self $this */
        return $this;
    }
949144
public function withCountryCodes(array $countryCodes)
    {
        Assertion::allString($countryCodes);
        Assertion::allNotBlank($countryCodes);

        $instance = clone $this;

        $instance->countryCodes = $countryCodes;

        return $instance;
    }
178768
public function setCountry($countryCode)
    {
        if (!Icepay_Parameter_Validation::country($countryCode))
            throw new Exception('Please enter a valid country format (ISO 3166-1)', 1005);

        $this->country = $countryCode;
        return $this;
    }
1022919
public function formatForMobileDialingInCountry($country, $removeFormatting = false)
    {
        if (! static::isValidCountryCode($country)) {
            throw CountryCodeException::invalid($country);
        }

        return $this->lib->formatNumberForMobileDialing(
            $this->getPhoneNumberInstance(),
            $country,
            $removeFormatting
        );
    }
927046
public function sendGetNormalizedJid($countryCode, $number)
    {
        $msgId = $this->createIqId();
        $ccNode = new ProtocolNode('cc', null, null, $countryCode);
        $inNode = new ProtocolNode('in', null, null, $number);
        $normalizeNode = new ProtocolNode('normalize', null, [$ccNode, $inNode], null);
        $node = new ProtocolNode('iq',
            [
                'id'    => $msgId,
                'xmlns' => 'urn:xmpp:whatsapp:account',
                'type'  => 'get',
                'to'    => Constants::WHATSAPP_SERVER,
            ], [$normalizeNode], null);

        $this->sendNode($node);
    }
712696
public final function setCountryISOCode($countryISOCode) {
		if($countryISOCode !== null)
			$this->countryISOCode = mb_strtoupper($countryISOCode);
		else
			$this->countryISOCode = null;
	}
1166204
public function setNumber($number)
    {
        if (!is_string($number) && !is_null($number)) {
            throw new \InvalidArgumentException(__CLASS__ . ' ' . __METHOD__ . ': Not a string');
        }

        $this->number = $number;

        return $this;
    }
1285237
public function setCountry($country)
    {
        if(strlen($country) > 2) {
            $country = CountryCodes::getCodeByName($country);
        }

        if(!CountryCodes::isValid($country)) {
            /*
             * @todo create Exception class for InvalidCountry
             */
            throw new \Exception('Invalid country specified in '. get_class($this));
        }
        $this->setCountryCode($country);

        return $this;
    }
985503
public function getCountry($countryCode)
    {
        // accept lowercase country codes
        $countryCode = strtoupper($countryCode);

        $result = current(array_filter($this->countries, function ($country) use ($countryCode) {
            /** @var VATCountry $country */
            return ($country->getCode() == $countryCode || $country->getCountryCode() == $countryCode);
        }));

        return $result != false ? $result : null;
    }
834236
public function getCountryDialingCode ($country_code) {
			$country_code = strtoupper($country_code);

			if (!isset($this->cache['country_codes']))
				$this->cache['country_codes'] = array();

			if (!isset($this->cache['country_codes'][$country_code])) {
				$tmp = $this->apiCall('get_pricing', array('country_code'=>$country_code));
				if (!$tmp['data']) return false;

				$this->cache['country_codes'][$country_code] = $tmp['data'];
			}

			return (string)$this->cache['country_codes'][$country_code]['prefix'];
		}
1093323
public function setBillingCountry($value)
    {
        switch ($value) {
            case 'DE':
            case 'AT':
                if (empty($this->iban) === false) {
                    $this->setIban($this->iban);
                }
                break;
            case 'SE':
            case 'FI':
                $this->setIban('');
                $this->setBic('');
                break;
        }

        return parent::setBillingCountry($value);
    }
519760
public function setCountry(Country $v = null)
    {
        if ($v === null) {
            $this->setCountryId(NULL);
        } else {
            $this->setCountryId($v->getId());
        }

        $this->aCountry = $v;

        // Add binding for other direction of this n:n relationship.
        // If this object has already been added to the Country object, it will not be re-added.
        if ($v !== null) {
            $v->addCustomer($this);
        }


        return $this;
    }