summaryrefslogtreecommitdiff
path: root/src/RegistrationNumber.php
diff options
context:
space:
mode:
authorLi Zhineng <[email protected]>2025-05-14 13:27:59 +0800
committerLi Zhineng <[email protected]>2025-05-14 13:27:59 +0800
commit665c8bc91124aff065b37e7767acf35e538198f9 (patch)
tree6a2750eb352c5beccc7a6310c1d6369649a23016 /src/RegistrationNumber.php
parentc09fdd361c8ca9fe75aaba744c85c82f21b9ac68 (diff)
downloadvehicle-license-china-665c8bc91124aff065b37e7767acf35e538198f9.tar.gz
vehicle-license-china-665c8bc91124aff065b37e7767acf35e538198f9.zip
registration number components
Diffstat (limited to 'src/RegistrationNumber.php')
-rw-r--r--src/RegistrationNumber.php7
1 files changed, 7 insertions, 0 deletions
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