translator = $translator; $this->name = $name; $this->alpha3 = $alpha3; $this->scope = $scope; $this->type = $type; $this->invertedName = $invertedName; $this->alpha2 = $alpha2; } public function getName(): string { return $this->name; } public function getLocalName(): string { if ($this->localName === null) { $this->localName = $this->translator->translate( Languages::getISONumber(), $this->name ); } return $this->localName; } public function getAlpha3(): string { return $this->alpha3; } public function getScope(): string { return $this->scope; } public function getType(): string { return $this->type; } public function getInvertedName(): ?string { return $this->invertedName; } public function getAlpha2(): ?string { return $this->alpha2; } }