You are here

public function Country::__construct in Commerce Core 8.2

Constructs a new Country object.

Parameters

string $country_code: The country code.

File

src/Country.php, line 23

Class

Country
Represents a country.

Namespace

Drupal\commerce

Code

public function __construct(string $country_code) {
  $this->countryCode = strtoupper($country_code);
}