public function Country::__construct in Price 2.x
Same name and namespace in other branches
- 8 src/Country.php \Drupal\price\Country::__construct()
- 3.x src/Country.php \Drupal\price\Country::__construct()
- 2.0.x src/Country.php \Drupal\price\Country::__construct()
- 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\priceCode
public function __construct(string $country_code) {
$this->countryCode = strtoupper($country_code);
}