status) { 0 => "Common", 1 => "Unregistered", 2 => "Registered", default => throw new UnexpectedValueException("Unexpected value: " . $this->status), }; } public function getRegisterText(): string { return match ($this->register) { 1 => "Trade Register", 2 => "Register of Foundations", 3 => "Register of Associations", 4 => "Tax Administration", 5 => "Prepayment Register", 6 => "VAT Register", 7 => "Employer Register", 8 => "register of bodies liable for tax on insurance premiums", default => throw new UnexpectedValueException("Unexpected value: " . $this->register), }; } public function getAuthorityText(): string { return match ($this->authority) { 1 => "Tax Administration", 2 => "Finnish Patent and Registration Office", 3 => "Population Register", default => throw new UnexpectedValueException("Unexpected value: " . $this->authority), }; } }