Overview
  • Namespace
  • Class

Namespaces

  • Klarna
    • XMLRPC
      • Exception

Classes

  • Address
  • Calc
  • CheckoutServiceRequest
  • CheckoutServiceResponse
  • Config
  • Country
  • CurlHandle
  • CurlTransport
  • Currency
  • Encoding
  • Flags
  • Klarna
  • Language

Class Country

Country Constants class.

Namespace: Klarna\XMLRPC
Located at Klarna/XMLRPC/Country.php

Methods summary

public static integer|null
# fromCode( string $val )

Converts a country code, e.g. 'de' or 'deu' to the Country constant.

Converts a country code, e.g. 'de' or 'deu' to the Country constant.

Parameters

$val
country code iso-alpha-2 or iso-alpha-3

Returns

integer|null
public static string|null
# getCode( integer $val, boolean $alpha3 = false )

Converts a Country constant to the respective country code.

Converts a Country constant to the respective country code.

Parameters

$val
Country constant
$alpha3
Whether to return a ISO-3166-1 alpha-3 code

Returns

string|null

Magic methods summary

Constants summary

integer AT

Country constant for Austria (AT).
ISO3166_AT.

Country constant for Austria (AT).
ISO3166_AT.

# 15
integer DK

Country constant for Denmark (DK).
ISO3166_DK.

Country constant for Denmark (DK).
ISO3166_DK.

# 59
integer FI

Country constant for Finland (FI).
ISO3166_FI.

Country constant for Finland (FI).
ISO3166_FI.

# 73
integer DE

Country constant for Germany (DE).
ISO3166_DE.

Country constant for Germany (DE).
ISO3166_DE.

# 81
integer NL

Country constant for Netherlands (NL).
ISO3166_NL.

Country constant for Netherlands (NL).
ISO3166_NL.

# 154
integer NO

Country constant for Norway (NO).
ISO3166_NO.

Country constant for Norway (NO).
ISO3166_NO.

# 164
integer SE

Country constant for Sweden (SE).
ISO3166_SE.

Country constant for Sweden (SE).
ISO3166_SE.

# 209
API documentation generated by ApiGen