You are here

public function Country::__construct in Price 3.x

Same name and namespace in other branches
  1. 8 src/Country.php \Drupal\price\Country::__construct()
  2. 2.0.x src/Country.php \Drupal\price\Country::__construct()
  3. 2.x src/Country.php \Drupal\price\Country::__construct()
  4. 3.0.x src/Country.php \Drupal\price\Country::__construct()

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\price

Code

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