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