name; } public function getLocalizedNameLabel(): string { return 'LLL:' . self::LABEL_FILE . ':' . $this->alpha2 . '.name'; } public function getOfficialName(): ?string { return $this->officialName; } public function getLocalizedOfficialNameLabel(): string { return 'LLL:' . self::LABEL_FILE . ':' . $this->alpha2 . '.official_name'; } public function getAlpha2IsoCode(): string { return $this->alpha2; } public function getAlpha3IsoCode(): string { return $this->alpha3; } public function getNumericRepresentation(): string { return $this->numeric; } public function getFlag(): string { return $this->flag; } public function __toString(): string { // This helper method allows to easily use the Object in Fluid or Extbase // context and pass along to `` / `LocalizationUtility::translate()` return $this->getLocalizedNameLabel(); } }