From 665c8bc91124aff065b37e7767acf35e538198f9 Mon Sep 17 00:00:00 2001 From: Li Zhineng Date: Wed, 14 May 2025 13:27:59 +0800 Subject: registration number components --- src/RegistrationNumber.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/RegistrationNumber.php b/src/RegistrationNumber.php index abc1364..678633d 100644 --- a/src/RegistrationNumber.php +++ b/src/RegistrationNumber.php @@ -550,6 +550,9 @@ final readonly class RegistrationNumber $this->agencyNumber = $agency; $this->sequence = $sequence; $this->suffix = $suffix; + + $this->region = ''; + $this->authority = ''; } private function parseConsulateRegistrationNumber(string $registrationNumber): void @@ -560,6 +563,8 @@ final readonly class RegistrationNumber $this->agencyNumber = $agency; $this->sequence = $sequence; $this->suffix = $suffix; + + $this->authority = ''; } private function parseRegistrationNumber(string $registrationNumber): void @@ -570,6 +575,8 @@ final readonly class RegistrationNumber $this->authority = $authority; $this->sequence = $sequence; $this->suffix = $suffix; + + $this->agencyNumber = ''; } public function isEmbassy(): bool -- cgit v1.2.3