From 590857ef7a55165ad247695bc9b27b511929ea55 Mon Sep 17 00:00:00 2001 From: Benjamin Morel Date: Tue, 8 Oct 2024 22:56:38 +0200 Subject: [PATCH] Make classes final --- src/Formatter/ADFormatter.php | 2 +- src/Formatter/AFFormatter.php | 2 +- src/Formatter/AIFormatter.php | 2 +- src/Formatter/ALFormatter.php | 2 +- src/Formatter/AMFormatter.php | 2 +- src/Formatter/AQFormatter.php | 2 +- src/Formatter/ARFormatter.php | 2 +- src/Formatter/ASFormatter.php | 2 +- src/Formatter/ATFormatter.php | 2 +- src/Formatter/AUFormatter.php | 2 +- src/Formatter/AXFormatter.php | 2 +- src/Formatter/AZFormatter.php | 2 +- src/Formatter/BAFormatter.php | 2 +- src/Formatter/BBFormatter.php | 2 +- src/Formatter/BDFormatter.php | 2 +- src/Formatter/BEFormatter.php | 2 +- src/Formatter/BGFormatter.php | 2 +- src/Formatter/BHFormatter.php | 2 +- src/Formatter/BLFormatter.php | 2 +- src/Formatter/BMFormatter.php | 2 +- src/Formatter/BNFormatter.php | 2 +- src/Formatter/BRFormatter.php | 2 +- src/Formatter/BTFormatter.php | 2 +- src/Formatter/BYFormatter.php | 2 +- src/Formatter/CAFormatter.php | 2 +- src/Formatter/CCFormatter.php | 2 +- src/Formatter/CHFormatter.php | 2 +- src/Formatter/CLFormatter.php | 2 +- src/Formatter/CNFormatter.php | 2 +- src/Formatter/COFormatter.php | 2 +- src/Formatter/CRFormatter.php | 2 +- src/Formatter/CUFormatter.php | 2 +- src/Formatter/CVFormatter.php | 2 +- src/Formatter/CXFormatter.php | 2 +- src/Formatter/CYFormatter.php | 2 +- src/Formatter/CZFormatter.php | 2 +- src/Formatter/DEFormatter.php | 2 +- src/Formatter/DKFormatter.php | 2 +- src/Formatter/DOFormatter.php | 2 +- src/Formatter/DZFormatter.php | 2 +- src/Formatter/ECFormatter.php | 2 +- src/Formatter/EEFormatter.php | 2 +- src/Formatter/EGFormatter.php | 2 +- src/Formatter/ESFormatter.php | 2 +- src/Formatter/ETFormatter.php | 2 +- src/Formatter/FIFormatter.php | 2 +- src/Formatter/FKFormatter.php | 2 +- src/Formatter/FMFormatter.php | 2 +- src/Formatter/FOFormatter.php | 2 +- src/Formatter/FRFormatter.php | 2 +- src/Formatter/GBFormatter.php | 2 +- src/Formatter/GEFormatter.php | 2 +- src/Formatter/GFFormatter.php | 2 +- src/Formatter/GGFormatter.php | 2 +- src/Formatter/GIFormatter.php | 2 +- src/Formatter/GLFormatter.php | 2 +- src/Formatter/GNFormatter.php | 2 +- src/Formatter/GPFormatter.php | 2 +- src/Formatter/GRFormatter.php | 2 +- src/Formatter/GSFormatter.php | 2 +- src/Formatter/GTFormatter.php | 2 +- src/Formatter/GUFormatter.php | 2 +- src/Formatter/GWFormatter.php | 2 +- src/Formatter/HNFormatter.php | 2 +- src/Formatter/HRFormatter.php | 2 +- src/Formatter/HTFormatter.php | 2 +- src/Formatter/HUFormatter.php | 2 +- src/Formatter/ICFormatter.php | 2 +- src/Formatter/IDFormatter.php | 2 +- src/Formatter/IEFormatter.php | 2 +- src/Formatter/ILFormatter.php | 2 +- src/Formatter/IMFormatter.php | 2 +- src/Formatter/INFormatter.php | 2 +- src/Formatter/IOFormatter.php | 2 +- src/Formatter/IQFormatter.php | 2 +- src/Formatter/IRFormatter.php | 2 +- src/Formatter/ISFormatter.php | 2 +- src/Formatter/ITFormatter.php | 2 +- src/Formatter/JEFormatter.php | 2 +- src/Formatter/JOFormatter.php | 2 +- src/Formatter/JPFormatter.php | 2 +- src/Formatter/KEFormatter.php | 2 +- src/Formatter/KGFormatter.php | 2 +- src/Formatter/KHFormatter.php | 2 +- src/Formatter/KRFormatter.php | 2 +- src/Formatter/KWFormatter.php | 2 +- src/Formatter/KYFormatter.php | 2 +- src/Formatter/KZFormatter.php | 2 +- src/Formatter/LAFormatter.php | 2 +- src/Formatter/LBFormatter.php | 2 +- src/Formatter/LCFormatter.php | 2 +- src/Formatter/LIFormatter.php | 2 +- src/Formatter/LKFormatter.php | 2 +- src/Formatter/LRFormatter.php | 2 +- src/Formatter/LSFormatter.php | 2 +- src/Formatter/LTFormatter.php | 2 +- src/Formatter/LUFormatter.php | 2 +- src/Formatter/LVFormatter.php | 2 +- src/Formatter/MAFormatter.php | 2 +- src/Formatter/MCFormatter.php | 2 +- src/Formatter/MDFormatter.php | 2 +- src/Formatter/MEFormatter.php | 2 +- src/Formatter/MFFormatter.php | 2 +- src/Formatter/MGFormatter.php | 2 +- src/Formatter/MHFormatter.php | 2 +- src/Formatter/MKFormatter.php | 2 +- src/Formatter/MMFormatter.php | 2 +- src/Formatter/MNFormatter.php | 2 +- src/Formatter/MPFormatter.php | 2 +- src/Formatter/MQFormatter.php | 2 +- src/Formatter/MSFormatter.php | 2 +- src/Formatter/MTFormatter.php | 2 +- src/Formatter/MUFormatter.php | 2 +- src/Formatter/MVFormatter.php | 2 +- src/Formatter/MXFormatter.php | 2 +- src/Formatter/MYFormatter.php | 2 +- src/Formatter/MZFormatter.php | 2 +- src/Formatter/NCFormatter.php | 2 +- src/Formatter/NEFormatter.php | 2 +- src/Formatter/NFFormatter.php | 2 +- src/Formatter/NGFormatter.php | 2 +- src/Formatter/NIFormatter.php | 2 +- src/Formatter/NLFormatter.php | 2 +- src/Formatter/NOFormatter.php | 2 +- src/Formatter/NPFormatter.php | 2 +- src/Formatter/NZFormatter.php | 2 +- src/Formatter/OMFormatter.php | 2 +- src/Formatter/PAFormatter.php | 2 +- src/Formatter/PEFormatter.php | 2 +- src/Formatter/PFFormatter.php | 2 +- src/Formatter/PGFormatter.php | 2 +- src/Formatter/PHFormatter.php | 2 +- src/Formatter/PKFormatter.php | 2 +- src/Formatter/PLFormatter.php | 2 +- src/Formatter/PMFormatter.php | 2 +- src/Formatter/PNFormatter.php | 2 +- src/Formatter/PRFormatter.php | 2 +- src/Formatter/PSFormatter.php | 2 +- src/Formatter/PTFormatter.php | 2 +- src/Formatter/PWFormatter.php | 2 +- src/Formatter/PYFormatter.php | 2 +- src/Formatter/REFormatter.php | 2 +- src/Formatter/ROFormatter.php | 2 +- src/Formatter/RSFormatter.php | 2 +- src/Formatter/RUFormatter.php | 2 +- src/Formatter/SAFormatter.php | 2 +- src/Formatter/SDFormatter.php | 2 +- src/Formatter/SEFormatter.php | 2 +- src/Formatter/SGFormatter.php | 2 +- src/Formatter/SHFormatter.php | 2 +- src/Formatter/SIFormatter.php | 2 +- src/Formatter/SJFormatter.php | 2 +- src/Formatter/SKFormatter.php | 2 +- src/Formatter/SMFormatter.php | 2 +- src/Formatter/SNFormatter.php | 2 +- src/Formatter/SVFormatter.php | 2 +- src/Formatter/SZFormatter.php | 2 +- src/Formatter/TCFormatter.php | 2 +- src/Formatter/TFFormatter.php | 2 +- src/Formatter/THFormatter.php | 2 +- src/Formatter/TJFormatter.php | 2 +- src/Formatter/TMFormatter.php | 2 +- src/Formatter/TNFormatter.php | 2 +- src/Formatter/TRFormatter.php | 2 +- src/Formatter/TTFormatter.php | 2 +- src/Formatter/TWFormatter.php | 2 +- src/Formatter/TZFormatter.php | 2 +- src/Formatter/UAFormatter.php | 2 +- src/Formatter/USFormatter.php | 2 +- src/Formatter/UYFormatter.php | 2 +- src/Formatter/UZFormatter.php | 2 +- src/Formatter/VAFormatter.php | 2 +- src/Formatter/VCFormatter.php | 2 +- src/Formatter/VEFormatter.php | 2 +- src/Formatter/VGFormatter.php | 2 +- src/Formatter/VIFormatter.php | 2 +- src/Formatter/VNFormatter.php | 2 +- src/Formatter/WFFormatter.php | 2 +- src/Formatter/WSFormatter.php | 2 +- src/Formatter/YTFormatter.php | 2 +- src/Formatter/ZAFormatter.php | 2 +- src/Formatter/ZMFormatter.php | 2 +- src/InvalidPostcodeException.php | 2 +- src/PostcodeFormatter.php | 2 +- src/UnknownCountryException.php | 2 +- 185 files changed, 185 insertions(+), 185 deletions(-) diff --git a/src/Formatter/ADFormatter.php b/src/Formatter/ADFormatter.php index 1ba04ca..50c5cba 100644 --- a/src/Formatter/ADFormatter.php +++ b/src/Formatter/ADFormatter.php @@ -15,7 +15,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Andorra */ -class ADFormatter implements CountryPostcodeFormatter +final class ADFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/AFFormatter.php b/src/Formatter/AFFormatter.php index 9881860..c286d5a 100644 --- a/src/Formatter/AFFormatter.php +++ b/src/Formatter/AFFormatter.php @@ -18,7 +18,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Afghanistan */ -class AFFormatter implements CountryPostcodeFormatter +final class AFFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/AIFormatter.php b/src/Formatter/AIFormatter.php index 0d094f4..5575dc5 100644 --- a/src/Formatter/AIFormatter.php +++ b/src/Formatter/AIFormatter.php @@ -14,7 +14,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class AIFormatter implements CountryPostcodeFormatter +final class AIFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/ALFormatter.php b/src/Formatter/ALFormatter.php index 43d3304..c23bb0e 100644 --- a/src/Formatter/ALFormatter.php +++ b/src/Formatter/ALFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Albania */ -class ALFormatter implements CountryPostcodeFormatter +final class ALFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/AMFormatter.php b/src/Formatter/AMFormatter.php index 2605e92..5a9d574 100644 --- a/src/Formatter/AMFormatter.php +++ b/src/Formatter/AMFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Armenia */ -class AMFormatter implements CountryPostcodeFormatter +final class AMFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/AQFormatter.php b/src/Formatter/AQFormatter.php index 5104f83..926f7d9 100644 --- a/src/Formatter/AQFormatter.php +++ b/src/Formatter/AQFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class AQFormatter implements CountryPostcodeFormatter +final class AQFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/ARFormatter.php b/src/Formatter/ARFormatter.php index 7edffb7..1c6fb43 100644 --- a/src/Formatter/ARFormatter.php +++ b/src/Formatter/ARFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Argentina */ -class ARFormatter implements CountryPostcodeFormatter +final class ARFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/ASFormatter.php b/src/Formatter/ASFormatter.php index 5f182f5..e418f95 100644 --- a/src/Formatter/ASFormatter.php +++ b/src/Formatter/ASFormatter.php @@ -15,7 +15,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_American_Samoa */ -class ASFormatter implements CountryPostcodeFormatter +final class ASFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/ATFormatter.php b/src/Formatter/ATFormatter.php index 8d50d0b..6320267 100644 --- a/src/Formatter/ATFormatter.php +++ b/src/Formatter/ATFormatter.php @@ -15,7 +15,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Austria */ -class ATFormatter implements CountryPostcodeFormatter +final class ATFormatter implements CountryPostcodeFormatter { use StripPrefix; diff --git a/src/Formatter/AUFormatter.php b/src/Formatter/AUFormatter.php index bde4eaf..4110d68 100644 --- a/src/Formatter/AUFormatter.php +++ b/src/Formatter/AUFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postcodes_in_Australia */ -class AUFormatter implements CountryPostcodeFormatter +final class AUFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/AXFormatter.php b/src/Formatter/AXFormatter.php index 043a9b4..7ae3640 100644 --- a/src/Formatter/AXFormatter.php +++ b/src/Formatter/AXFormatter.php @@ -15,7 +15,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class AXFormatter implements CountryPostcodeFormatter +final class AXFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/AZFormatter.php b/src/Formatter/AZFormatter.php index 2ef7076..bf6e687 100644 --- a/src/Formatter/AZFormatter.php +++ b/src/Formatter/AZFormatter.php @@ -15,7 +15,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Azerbaijan */ -class AZFormatter implements CountryPostcodeFormatter +final class AZFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/BAFormatter.php b/src/Formatter/BAFormatter.php index 0a9fd9d..b324d44 100644 --- a/src/Formatter/BAFormatter.php +++ b/src/Formatter/BAFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class BAFormatter implements CountryPostcodeFormatter +final class BAFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/BBFormatter.php b/src/Formatter/BBFormatter.php index 0192967..f9e8498 100644 --- a/src/Formatter/BBFormatter.php +++ b/src/Formatter/BBFormatter.php @@ -15,7 +15,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Barbados */ -class BBFormatter implements CountryPostcodeFormatter +final class BBFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/BDFormatter.php b/src/Formatter/BDFormatter.php index c0f419f..3364d43 100644 --- a/src/Formatter/BDFormatter.php +++ b/src/Formatter/BDFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/List_of_postal_codes_in_Bangladesh */ -class BDFormatter implements CountryPostcodeFormatter +final class BDFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/BEFormatter.php b/src/Formatter/BEFormatter.php index 03ae5f0..75d3610 100644 --- a/src/Formatter/BEFormatter.php +++ b/src/Formatter/BEFormatter.php @@ -15,7 +15,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Belgium */ -class BEFormatter implements CountryPostcodeFormatter +final class BEFormatter implements CountryPostcodeFormatter { use StripPrefix; diff --git a/src/Formatter/BGFormatter.php b/src/Formatter/BGFormatter.php index 747501b..10aaa40 100644 --- a/src/Formatter/BGFormatter.php +++ b/src/Formatter/BGFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Bulgaria */ -class BGFormatter implements CountryPostcodeFormatter +final class BGFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/BHFormatter.php b/src/Formatter/BHFormatter.php index d4331b4..8c4ae04 100644 --- a/src/Formatter/BHFormatter.php +++ b/src/Formatter/BHFormatter.php @@ -14,7 +14,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class BHFormatter implements CountryPostcodeFormatter +final class BHFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/BLFormatter.php b/src/Formatter/BLFormatter.php index 1c7c600..61cf033 100644 --- a/src/Formatter/BLFormatter.php +++ b/src/Formatter/BLFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class BLFormatter implements CountryPostcodeFormatter +final class BLFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/BMFormatter.php b/src/Formatter/BMFormatter.php index e38243f..bc22a29 100644 --- a/src/Formatter/BMFormatter.php +++ b/src/Formatter/BMFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Bermuda */ -class BMFormatter implements CountryPostcodeFormatter +final class BMFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/BNFormatter.php b/src/Formatter/BNFormatter.php index d049752..8e437d8 100644 --- a/src/Formatter/BNFormatter.php +++ b/src/Formatter/BNFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Brunei */ -class BNFormatter implements CountryPostcodeFormatter +final class BNFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/BRFormatter.php b/src/Formatter/BRFormatter.php index 4135ef0..76b906c 100644 --- a/src/Formatter/BRFormatter.php +++ b/src/Formatter/BRFormatter.php @@ -15,7 +15,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/C%C3%B3digo_de_Endere%C3%A7amento_Postal */ -class BRFormatter implements CountryPostcodeFormatter +final class BRFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/BTFormatter.php b/src/Formatter/BTFormatter.php index 118c425..a29a628 100644 --- a/src/Formatter/BTFormatter.php +++ b/src/Formatter/BTFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class BTFormatter implements CountryPostcodeFormatter +final class BTFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/BYFormatter.php b/src/Formatter/BYFormatter.php index 9cd283b..28b5e1f 100644 --- a/src/Formatter/BYFormatter.php +++ b/src/Formatter/BYFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class BYFormatter implements CountryPostcodeFormatter +final class BYFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/CAFormatter.php b/src/Formatter/CAFormatter.php index a3b0919..27b0280 100644 --- a/src/Formatter/CAFormatter.php +++ b/src/Formatter/CAFormatter.php @@ -16,7 +16,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Canada */ -class CAFormatter implements CountryPostcodeFormatter +final class CAFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/CCFormatter.php b/src/Formatter/CCFormatter.php index 56f318a..0252941 100644 --- a/src/Formatter/CCFormatter.php +++ b/src/Formatter/CCFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class CCFormatter implements CountryPostcodeFormatter +final class CCFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/CHFormatter.php b/src/Formatter/CHFormatter.php index 6f135f4..92823bb 100644 --- a/src/Formatter/CHFormatter.php +++ b/src/Formatter/CHFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Switzerland_and_Liechtenstein */ -class CHFormatter implements CountryPostcodeFormatter +final class CHFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/CLFormatter.php b/src/Formatter/CLFormatter.php index 8c2f551..20bfa15 100644 --- a/src/Formatter/CLFormatter.php +++ b/src/Formatter/CLFormatter.php @@ -15,7 +15,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Chile */ -class CLFormatter implements CountryPostcodeFormatter +final class CLFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/CNFormatter.php b/src/Formatter/CNFormatter.php index 6c61081..faf415e 100644 --- a/src/Formatter/CNFormatter.php +++ b/src/Formatter/CNFormatter.php @@ -15,7 +15,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/List_of_postal_codes_in_China */ -class CNFormatter implements CountryPostcodeFormatter +final class CNFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/COFormatter.php b/src/Formatter/COFormatter.php index f848be6..30cc724 100644 --- a/src/Formatter/COFormatter.php +++ b/src/Formatter/COFormatter.php @@ -15,7 +15,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://es.wikipedia.org/wiki/Anexo:C%C3%B3digos_postales_de_Colombia */ -class COFormatter implements CountryPostcodeFormatter +final class COFormatter implements CountryPostcodeFormatter { private const DEPARTMENTS = [ '05', '08', '11', '13', diff --git a/src/Formatter/CRFormatter.php b/src/Formatter/CRFormatter.php index 84e0490..9cde35d 100644 --- a/src/Formatter/CRFormatter.php +++ b/src/Formatter/CRFormatter.php @@ -15,7 +15,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/List_of_districts_of_Costa_Rica */ -class CRFormatter implements CountryPostcodeFormatter +final class CRFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/CUFormatter.php b/src/Formatter/CUFormatter.php index 5bb3884..edf5732 100644 --- a/src/Formatter/CUFormatter.php +++ b/src/Formatter/CUFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class CUFormatter implements CountryPostcodeFormatter +final class CUFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/CVFormatter.php b/src/Formatter/CVFormatter.php index a0400ed..9f19b1d 100644 --- a/src/Formatter/CVFormatter.php +++ b/src/Formatter/CVFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class CVFormatter implements CountryPostcodeFormatter +final class CVFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/CXFormatter.php b/src/Formatter/CXFormatter.php index 1bd6c06..c4fcdb0 100644 --- a/src/Formatter/CXFormatter.php +++ b/src/Formatter/CXFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class CXFormatter implements CountryPostcodeFormatter +final class CXFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/CYFormatter.php b/src/Formatter/CYFormatter.php index b54436a..bdd0f67 100644 --- a/src/Formatter/CYFormatter.php +++ b/src/Formatter/CYFormatter.php @@ -16,7 +16,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Cyprus */ -class CYFormatter implements CountryPostcodeFormatter +final class CYFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/CZFormatter.php b/src/Formatter/CZFormatter.php index 69495cc..942b83e 100644 --- a/src/Formatter/CZFormatter.php +++ b/src/Formatter/CZFormatter.php @@ -19,7 +19,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class CZFormatter implements CountryPostcodeFormatter +final class CZFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/DEFormatter.php b/src/Formatter/DEFormatter.php index 42c40f0..400410c 100644 --- a/src/Formatter/DEFormatter.php +++ b/src/Formatter/DEFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Germany */ -class DEFormatter implements CountryPostcodeFormatter +final class DEFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/DKFormatter.php b/src/Formatter/DKFormatter.php index f3c000a..47e9fcc 100644 --- a/src/Formatter/DKFormatter.php +++ b/src/Formatter/DKFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Denmark */ -class DKFormatter implements CountryPostcodeFormatter +final class DKFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/DOFormatter.php b/src/Formatter/DOFormatter.php index f978824..0577b34 100644 --- a/src/Formatter/DOFormatter.php +++ b/src/Formatter/DOFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class DOFormatter implements CountryPostcodeFormatter +final class DOFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/DZFormatter.php b/src/Formatter/DZFormatter.php index 1c0e2b9..2eed460 100644 --- a/src/Formatter/DZFormatter.php +++ b/src/Formatter/DZFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Algeria */ -class DZFormatter implements CountryPostcodeFormatter +final class DZFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/ECFormatter.php b/src/Formatter/ECFormatter.php index e3010f9..c67e325 100644 --- a/src/Formatter/ECFormatter.php +++ b/src/Formatter/ECFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Ecuador */ -class ECFormatter implements CountryPostcodeFormatter +final class ECFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/EEFormatter.php b/src/Formatter/EEFormatter.php index a11decd..9f99704 100644 --- a/src/Formatter/EEFormatter.php +++ b/src/Formatter/EEFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class EEFormatter implements CountryPostcodeFormatter +final class EEFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/EGFormatter.php b/src/Formatter/EGFormatter.php index 89f8c7b..4d837b8 100644 --- a/src/Formatter/EGFormatter.php +++ b/src/Formatter/EGFormatter.php @@ -15,7 +15,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes_in_Egypt * @see https://www.upu.int/UPU/media/upu/PostalEntitiesFiles/addressingUnit/egyEn.pdf */ -class EGFormatter implements CountryPostcodeFormatter +final class EGFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/ESFormatter.php b/src/Formatter/ESFormatter.php index 2aaf79c..9c0408b 100644 --- a/src/Formatter/ESFormatter.php +++ b/src/Formatter/ESFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/List_of_postal_codes_in_Spain */ -class ESFormatter implements CountryPostcodeFormatter +final class ESFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/ETFormatter.php b/src/Formatter/ETFormatter.php index 6ded4ab..28c1140 100644 --- a/src/Formatter/ETFormatter.php +++ b/src/Formatter/ETFormatter.php @@ -14,7 +14,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class ETFormatter implements CountryPostcodeFormatter +final class ETFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/FIFormatter.php b/src/Formatter/FIFormatter.php index 6bbaecd..cc96e40 100644 --- a/src/Formatter/FIFormatter.php +++ b/src/Formatter/FIFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Finland */ -class FIFormatter implements CountryPostcodeFormatter +final class FIFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/FKFormatter.php b/src/Formatter/FKFormatter.php index d845ee3..7e52aa1 100644 --- a/src/Formatter/FKFormatter.php +++ b/src/Formatter/FKFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class FKFormatter implements CountryPostcodeFormatter +final class FKFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/FMFormatter.php b/src/Formatter/FMFormatter.php index fcf9508..be3a8ee 100644 --- a/src/Formatter/FMFormatter.php +++ b/src/Formatter/FMFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class FMFormatter implements CountryPostcodeFormatter +final class FMFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/FOFormatter.php b/src/Formatter/FOFormatter.php index 0ab69af..b818d3f 100644 --- a/src/Formatter/FOFormatter.php +++ b/src/Formatter/FOFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class FOFormatter implements CountryPostcodeFormatter +final class FOFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/FRFormatter.php b/src/Formatter/FRFormatter.php index 36f8313..15c1776 100644 --- a/src/Formatter/FRFormatter.php +++ b/src/Formatter/FRFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class FRFormatter implements CountryPostcodeFormatter +final class FRFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/GBFormatter.php b/src/Formatter/GBFormatter.php index b54dc87..e356c14 100644 --- a/src/Formatter/GBFormatter.php +++ b/src/Formatter/GBFormatter.php @@ -26,7 +26,7 @@ * @see https://en.wikipedia.org/wiki/Postcodes_in_the_United_Kingdom * @see https://en.wikipedia.org/wiki/List_of_postcode_areas_in_the_United_Kingdom */ -class GBFormatter implements CountryPostcodeFormatter +final class GBFormatter implements CountryPostcodeFormatter { /** * The list of valid area codes. diff --git a/src/Formatter/GEFormatter.php b/src/Formatter/GEFormatter.php index 5c7c34b..c380dbd 100644 --- a/src/Formatter/GEFormatter.php +++ b/src/Formatter/GEFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class GEFormatter implements CountryPostcodeFormatter +final class GEFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/GFFormatter.php b/src/Formatter/GFFormatter.php index c9cf269..e4c7871 100644 --- a/src/Formatter/GFFormatter.php +++ b/src/Formatter/GFFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class GFFormatter implements CountryPostcodeFormatter +final class GFFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/GGFormatter.php b/src/Formatter/GGFormatter.php index acb8573..3594479 100644 --- a/src/Formatter/GGFormatter.php +++ b/src/Formatter/GGFormatter.php @@ -20,7 +20,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/GY_postcode_area */ -class GGFormatter implements CountryPostcodeFormatter +final class GGFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/GIFormatter.php b/src/Formatter/GIFormatter.php index ccebf7b..d8a778c 100644 --- a/src/Formatter/GIFormatter.php +++ b/src/Formatter/GIFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_addresses_in_Gibraltar */ -class GIFormatter implements CountryPostcodeFormatter +final class GIFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/GLFormatter.php b/src/Formatter/GLFormatter.php index d97a6e5..41d5c80 100644 --- a/src/Formatter/GLFormatter.php +++ b/src/Formatter/GLFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class GLFormatter implements CountryPostcodeFormatter +final class GLFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/GNFormatter.php b/src/Formatter/GNFormatter.php index c7edd63..69e5308 100644 --- a/src/Formatter/GNFormatter.php +++ b/src/Formatter/GNFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class GNFormatter implements CountryPostcodeFormatter +final class GNFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/GPFormatter.php b/src/Formatter/GPFormatter.php index a9e6872..b693b93 100644 --- a/src/Formatter/GPFormatter.php +++ b/src/Formatter/GPFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class GPFormatter implements CountryPostcodeFormatter +final class GPFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/GRFormatter.php b/src/Formatter/GRFormatter.php index 7a88497..f1a4154 100644 --- a/src/Formatter/GRFormatter.php +++ b/src/Formatter/GRFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Greece */ -class GRFormatter implements CountryPostcodeFormatter +final class GRFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/GSFormatter.php b/src/Formatter/GSFormatter.php index c5b0a73..9f77c39 100644 --- a/src/Formatter/GSFormatter.php +++ b/src/Formatter/GSFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class GSFormatter implements CountryPostcodeFormatter +final class GSFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/GTFormatter.php b/src/Formatter/GTFormatter.php index 0e9b3bb..996e553 100644 --- a/src/Formatter/GTFormatter.php +++ b/src/Formatter/GTFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Guatemala */ -class GTFormatter implements CountryPostcodeFormatter +final class GTFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/GUFormatter.php b/src/Formatter/GUFormatter.php index 5c4d24f..20b58bc 100644 --- a/src/Formatter/GUFormatter.php +++ b/src/Formatter/GUFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class GUFormatter implements CountryPostcodeFormatter +final class GUFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/GWFormatter.php b/src/Formatter/GWFormatter.php index ba0b3cd..faae243 100644 --- a/src/Formatter/GWFormatter.php +++ b/src/Formatter/GWFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class GWFormatter implements CountryPostcodeFormatter +final class GWFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/HNFormatter.php b/src/Formatter/HNFormatter.php index 2a668f7..f71ea58 100644 --- a/src/Formatter/HNFormatter.php +++ b/src/Formatter/HNFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class HNFormatter implements CountryPostcodeFormatter +final class HNFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/HRFormatter.php b/src/Formatter/HRFormatter.php index bfc605b..7514ee3 100644 --- a/src/Formatter/HRFormatter.php +++ b/src/Formatter/HRFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Croatia */ -class HRFormatter implements CountryPostcodeFormatter +final class HRFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/HTFormatter.php b/src/Formatter/HTFormatter.php index cab5d2f..6f84f50 100644 --- a/src/Formatter/HTFormatter.php +++ b/src/Formatter/HTFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class HTFormatter implements CountryPostcodeFormatter +final class HTFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/HUFormatter.php b/src/Formatter/HUFormatter.php index 160c963..7b5b2de 100644 --- a/src/Formatter/HUFormatter.php +++ b/src/Formatter/HUFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Hungary */ -class HUFormatter implements CountryPostcodeFormatter +final class HUFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/ICFormatter.php b/src/Formatter/ICFormatter.php index 23f0e39..4bbac2b 100644 --- a/src/Formatter/ICFormatter.php +++ b/src/Formatter/ICFormatter.php @@ -16,7 +16,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/List_of_postal_codes_in_Spain */ -class ICFormatter implements CountryPostcodeFormatter +final class ICFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/IDFormatter.php b/src/Formatter/IDFormatter.php index 20f9620..0010ca3 100644 --- a/src/Formatter/IDFormatter.php +++ b/src/Formatter/IDFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Indonesia */ -class IDFormatter implements CountryPostcodeFormatter +final class IDFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/IEFormatter.php b/src/Formatter/IEFormatter.php index 3d5ae8e..d6e0de8 100644 --- a/src/Formatter/IEFormatter.php +++ b/src/Formatter/IEFormatter.php @@ -36,7 +36,7 @@ * @see https://www.eircode.ie/docs/default-source/Common/prepareyourbusinessforeircode-edition3published.pdf * @see https://www.autoaddress.ie/support/developer-centre/resources/routing-key-boundaries */ -class IEFormatter implements CountryPostcodeFormatter +final class IEFormatter implements CountryPostcodeFormatter { /** * The regular expression pattern used to validate the postcode and extract the two parts. diff --git a/src/Formatter/ILFormatter.php b/src/Formatter/ILFormatter.php index deef5c1..dce4aaf 100644 --- a/src/Formatter/ILFormatter.php +++ b/src/Formatter/ILFormatter.php @@ -15,7 +15,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Israel */ -class ILFormatter implements CountryPostcodeFormatter +final class ILFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/IMFormatter.php b/src/Formatter/IMFormatter.php index 50a6426..ab4692b 100644 --- a/src/Formatter/IMFormatter.php +++ b/src/Formatter/IMFormatter.php @@ -19,7 +19,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/IM_postcode_area */ -class IMFormatter implements CountryPostcodeFormatter +final class IMFormatter implements CountryPostcodeFormatter { /** * The regular expression pattern used to validate the postcode and extract the two parts. diff --git a/src/Formatter/INFormatter.php b/src/Formatter/INFormatter.php index 069f66d..7c552eb 100644 --- a/src/Formatter/INFormatter.php +++ b/src/Formatter/INFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_Index_Number */ -class INFormatter implements CountryPostcodeFormatter +final class INFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/IOFormatter.php b/src/Formatter/IOFormatter.php index c8d6ae0..2500161 100644 --- a/src/Formatter/IOFormatter.php +++ b/src/Formatter/IOFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class IOFormatter implements CountryPostcodeFormatter +final class IOFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/IQFormatter.php b/src/Formatter/IQFormatter.php index ac6684e..4e6225f 100644 --- a/src/Formatter/IQFormatter.php +++ b/src/Formatter/IQFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Iraq */ -class IQFormatter implements CountryPostcodeFormatter +final class IQFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/IRFormatter.php b/src/Formatter/IRFormatter.php index 48a64f0..efa2b73 100644 --- a/src/Formatter/IRFormatter.php +++ b/src/Formatter/IRFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class IRFormatter implements CountryPostcodeFormatter +final class IRFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/ISFormatter.php b/src/Formatter/ISFormatter.php index 9ba20ee..9fe24c2 100644 --- a/src/Formatter/ISFormatter.php +++ b/src/Formatter/ISFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/List_of_postal_codes_in_Iceland */ -class ISFormatter implements CountryPostcodeFormatter +final class ISFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/ITFormatter.php b/src/Formatter/ITFormatter.php index 02baf99..969285d 100644 --- a/src/Formatter/ITFormatter.php +++ b/src/Formatter/ITFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Codice_di_avviamento_postale */ -class ITFormatter implements CountryPostcodeFormatter +final class ITFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/JEFormatter.php b/src/Formatter/JEFormatter.php index 1ea1a57..e7a094f 100644 --- a/src/Formatter/JEFormatter.php +++ b/src/Formatter/JEFormatter.php @@ -19,7 +19,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/JE_postcode_area */ -class JEFormatter implements CountryPostcodeFormatter +final class JEFormatter implements CountryPostcodeFormatter { /** * The regular expression pattern used to validate the postcode and extract the two parts. diff --git a/src/Formatter/JOFormatter.php b/src/Formatter/JOFormatter.php index 4150573..ff0f867 100644 --- a/src/Formatter/JOFormatter.php +++ b/src/Formatter/JOFormatter.php @@ -14,7 +14,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class JOFormatter implements CountryPostcodeFormatter +final class JOFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/JPFormatter.php b/src/Formatter/JPFormatter.php index 0b48210..d5baa92 100644 --- a/src/Formatter/JPFormatter.php +++ b/src/Formatter/JPFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Japan */ -class JPFormatter implements CountryPostcodeFormatter +final class JPFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/KEFormatter.php b/src/Formatter/KEFormatter.php index 4f7174f..8a24245 100644 --- a/src/Formatter/KEFormatter.php +++ b/src/Formatter/KEFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class KEFormatter implements CountryPostcodeFormatter +final class KEFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/KGFormatter.php b/src/Formatter/KGFormatter.php index d9c669e..4605c58 100644 --- a/src/Formatter/KGFormatter.php +++ b/src/Formatter/KGFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class KGFormatter implements CountryPostcodeFormatter +final class KGFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/KHFormatter.php b/src/Formatter/KHFormatter.php index d9f0a94..1ab1032 100644 --- a/src/Formatter/KHFormatter.php +++ b/src/Formatter/KHFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class KHFormatter implements CountryPostcodeFormatter +final class KHFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/KRFormatter.php b/src/Formatter/KRFormatter.php index 8e3b648..f239d55 100644 --- a/src/Formatter/KRFormatter.php +++ b/src/Formatter/KRFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/List_of_postal_codes_in_South_Korea */ -class KRFormatter implements CountryPostcodeFormatter +final class KRFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/KWFormatter.php b/src/Formatter/KWFormatter.php index 701c14e..9cf8b04 100644 --- a/src/Formatter/KWFormatter.php +++ b/src/Formatter/KWFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class KWFormatter implements CountryPostcodeFormatter +final class KWFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/KYFormatter.php b/src/Formatter/KYFormatter.php index 93246ad..adbafd7 100644 --- a/src/Formatter/KYFormatter.php +++ b/src/Formatter/KYFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_the_Cayman_Islands */ -class KYFormatter implements CountryPostcodeFormatter +final class KYFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/KZFormatter.php b/src/Formatter/KZFormatter.php index 71733ad..3d64679 100644 --- a/src/Formatter/KZFormatter.php +++ b/src/Formatter/KZFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class KZFormatter implements CountryPostcodeFormatter +final class KZFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/LAFormatter.php b/src/Formatter/LAFormatter.php index b5963b8..460ca41 100644 --- a/src/Formatter/LAFormatter.php +++ b/src/Formatter/LAFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class LAFormatter implements CountryPostcodeFormatter +final class LAFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/LBFormatter.php b/src/Formatter/LBFormatter.php index 53d75d9..bbdac6a 100644 --- a/src/Formatter/LBFormatter.php +++ b/src/Formatter/LBFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class LBFormatter implements CountryPostcodeFormatter +final class LBFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/LCFormatter.php b/src/Formatter/LCFormatter.php index a46c4d6..f9e1601 100644 --- a/src/Formatter/LCFormatter.php +++ b/src/Formatter/LCFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class LCFormatter implements CountryPostcodeFormatter +final class LCFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/LIFormatter.php b/src/Formatter/LIFormatter.php index a136b13..ffb2d05 100644 --- a/src/Formatter/LIFormatter.php +++ b/src/Formatter/LIFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Switzerland_and_Liechtenstein */ -class LIFormatter implements CountryPostcodeFormatter +final class LIFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/LKFormatter.php b/src/Formatter/LKFormatter.php index f2d57e2..b732d8c 100644 --- a/src/Formatter/LKFormatter.php +++ b/src/Formatter/LKFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Sri_Lanka */ -class LKFormatter implements CountryPostcodeFormatter +final class LKFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/LRFormatter.php b/src/Formatter/LRFormatter.php index 989f6b6..c91654c 100644 --- a/src/Formatter/LRFormatter.php +++ b/src/Formatter/LRFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class LRFormatter implements CountryPostcodeFormatter +final class LRFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/LSFormatter.php b/src/Formatter/LSFormatter.php index 85efc7f..2a116e5 100644 --- a/src/Formatter/LSFormatter.php +++ b/src/Formatter/LSFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class LSFormatter implements CountryPostcodeFormatter +final class LSFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/LTFormatter.php b/src/Formatter/LTFormatter.php index 1b3ce96..806f189 100644 --- a/src/Formatter/LTFormatter.php +++ b/src/Formatter/LTFormatter.php @@ -18,7 +18,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Lithuania */ -class LTFormatter implements CountryPostcodeFormatter +final class LTFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/LUFormatter.php b/src/Formatter/LUFormatter.php index bc6ec4b..2c1f716 100644 --- a/src/Formatter/LUFormatter.php +++ b/src/Formatter/LUFormatter.php @@ -15,7 +15,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Luxembourg */ -class LUFormatter implements CountryPostcodeFormatter +final class LUFormatter implements CountryPostcodeFormatter { use StripPrefix; diff --git a/src/Formatter/LVFormatter.php b/src/Formatter/LVFormatter.php index 8cd7d6c..6693fee 100644 --- a/src/Formatter/LVFormatter.php +++ b/src/Formatter/LVFormatter.php @@ -17,7 +17,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Latvia */ -class LVFormatter implements CountryPostcodeFormatter +final class LVFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/MAFormatter.php b/src/Formatter/MAFormatter.php index 3cd188d..c6af9d7 100644 --- a/src/Formatter/MAFormatter.php +++ b/src/Formatter/MAFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/List_of_postal_codes_in_Morocco */ -class MAFormatter implements CountryPostcodeFormatter +final class MAFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/MCFormatter.php b/src/Formatter/MCFormatter.php index 43150b0..dbb5567 100644 --- a/src/Formatter/MCFormatter.php +++ b/src/Formatter/MCFormatter.php @@ -18,7 +18,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_France#Monaco */ -class MCFormatter implements CountryPostcodeFormatter +final class MCFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/MDFormatter.php b/src/Formatter/MDFormatter.php index af46884..e77756c 100644 --- a/src/Formatter/MDFormatter.php +++ b/src/Formatter/MDFormatter.php @@ -16,7 +16,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Moldova */ -class MDFormatter implements CountryPostcodeFormatter +final class MDFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/MEFormatter.php b/src/Formatter/MEFormatter.php index 0dc9d4f..79d24b9 100644 --- a/src/Formatter/MEFormatter.php +++ b/src/Formatter/MEFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Montenegro */ -class MEFormatter implements CountryPostcodeFormatter +final class MEFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/MFFormatter.php b/src/Formatter/MFFormatter.php index 7c86a72..9dd0b63 100644 --- a/src/Formatter/MFFormatter.php +++ b/src/Formatter/MFFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class MFFormatter implements CountryPostcodeFormatter +final class MFFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/MGFormatter.php b/src/Formatter/MGFormatter.php index 410f1a7..23f1a0c 100644 --- a/src/Formatter/MGFormatter.php +++ b/src/Formatter/MGFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class MGFormatter implements CountryPostcodeFormatter +final class MGFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/MHFormatter.php b/src/Formatter/MHFormatter.php index bedd590..d5f17a3 100644 --- a/src/Formatter/MHFormatter.php +++ b/src/Formatter/MHFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class MHFormatter implements CountryPostcodeFormatter +final class MHFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/MKFormatter.php b/src/Formatter/MKFormatter.php index 595d201..b6cef9b 100644 --- a/src/Formatter/MKFormatter.php +++ b/src/Formatter/MKFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_the_Republic_of_Macedonia */ -class MKFormatter implements CountryPostcodeFormatter +final class MKFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/MMFormatter.php b/src/Formatter/MMFormatter.php index fd96f19..fce845f 100644 --- a/src/Formatter/MMFormatter.php +++ b/src/Formatter/MMFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Myanmar */ -class MMFormatter implements CountryPostcodeFormatter +final class MMFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/MNFormatter.php b/src/Formatter/MNFormatter.php index 6c3513f..a053131 100644 --- a/src/Formatter/MNFormatter.php +++ b/src/Formatter/MNFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class MNFormatter implements CountryPostcodeFormatter +final class MNFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/MPFormatter.php b/src/Formatter/MPFormatter.php index 4802f2e..e02c510 100644 --- a/src/Formatter/MPFormatter.php +++ b/src/Formatter/MPFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_the_Northern_Mariana_Islands */ -class MPFormatter implements CountryPostcodeFormatter +final class MPFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/MQFormatter.php b/src/Formatter/MQFormatter.php index 3ff5239..b6a1756 100644 --- a/src/Formatter/MQFormatter.php +++ b/src/Formatter/MQFormatter.php @@ -14,7 +14,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class MQFormatter implements CountryPostcodeFormatter +final class MQFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/MSFormatter.php b/src/Formatter/MSFormatter.php index 28a66e9..5f40dc1 100644 --- a/src/Formatter/MSFormatter.php +++ b/src/Formatter/MSFormatter.php @@ -15,7 +15,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class MSFormatter implements CountryPostcodeFormatter +final class MSFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/MTFormatter.php b/src/Formatter/MTFormatter.php index c3bf36a..d2a65af 100644 --- a/src/Formatter/MTFormatter.php +++ b/src/Formatter/MTFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Malta */ -class MTFormatter implements CountryPostcodeFormatter +final class MTFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/MUFormatter.php b/src/Formatter/MUFormatter.php index 6f31900..f774159 100644 --- a/src/Formatter/MUFormatter.php +++ b/src/Formatter/MUFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Mauritius */ -class MUFormatter implements CountryPostcodeFormatter +final class MUFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/MVFormatter.php b/src/Formatter/MVFormatter.php index 8680bcd..88c2628 100644 --- a/src/Formatter/MVFormatter.php +++ b/src/Formatter/MVFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class MVFormatter implements CountryPostcodeFormatter +final class MVFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/MXFormatter.php b/src/Formatter/MXFormatter.php index c81b1a7..5f81c01 100644 --- a/src/Formatter/MXFormatter.php +++ b/src/Formatter/MXFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Mexico */ -class MXFormatter implements CountryPostcodeFormatter +final class MXFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/MYFormatter.php b/src/Formatter/MYFormatter.php index d42ff57..ec10a94 100644 --- a/src/Formatter/MYFormatter.php +++ b/src/Formatter/MYFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Malaysia */ -class MYFormatter implements CountryPostcodeFormatter +final class MYFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/MZFormatter.php b/src/Formatter/MZFormatter.php index 1029bd3..9d74f68 100644 --- a/src/Formatter/MZFormatter.php +++ b/src/Formatter/MZFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class MZFormatter implements CountryPostcodeFormatter +final class MZFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/NCFormatter.php b/src/Formatter/NCFormatter.php index 1558be2..f4cc19a 100644 --- a/src/Formatter/NCFormatter.php +++ b/src/Formatter/NCFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class NCFormatter implements CountryPostcodeFormatter +final class NCFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/NEFormatter.php b/src/Formatter/NEFormatter.php index 8861499..9025ae2 100644 --- a/src/Formatter/NEFormatter.php +++ b/src/Formatter/NEFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class NEFormatter implements CountryPostcodeFormatter +final class NEFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/NFFormatter.php b/src/Formatter/NFFormatter.php index e829fe1..b59367c 100644 --- a/src/Formatter/NFFormatter.php +++ b/src/Formatter/NFFormatter.php @@ -14,7 +14,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class NFFormatter implements CountryPostcodeFormatter +final class NFFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/NGFormatter.php b/src/Formatter/NGFormatter.php index b2dbdaa..5a3027e 100644 --- a/src/Formatter/NGFormatter.php +++ b/src/Formatter/NGFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Nigeria */ -class NGFormatter implements CountryPostcodeFormatter +final class NGFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/NIFormatter.php b/src/Formatter/NIFormatter.php index 8316b73..91732e2 100644 --- a/src/Formatter/NIFormatter.php +++ b/src/Formatter/NIFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Nicaragua */ -class NIFormatter implements CountryPostcodeFormatter +final class NIFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/NLFormatter.php b/src/Formatter/NLFormatter.php index 62837fe..a764677 100644 --- a/src/Formatter/NLFormatter.php +++ b/src/Formatter/NLFormatter.php @@ -15,7 +15,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_the_Netherlands */ -class NLFormatter implements CountryPostcodeFormatter +final class NLFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/NOFormatter.php b/src/Formatter/NOFormatter.php index 4cc3fe6..7339f26 100644 --- a/src/Formatter/NOFormatter.php +++ b/src/Formatter/NOFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Norway */ -class NOFormatter implements CountryPostcodeFormatter +final class NOFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/NPFormatter.php b/src/Formatter/NPFormatter.php index 7e00915..d8d3d52 100644 --- a/src/Formatter/NPFormatter.php +++ b/src/Formatter/NPFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/List_of_postal_codes_in_Nepal */ -class NPFormatter implements CountryPostcodeFormatter +final class NPFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/NZFormatter.php b/src/Formatter/NZFormatter.php index a2f81f1..4431332 100644 --- a/src/Formatter/NZFormatter.php +++ b/src/Formatter/NZFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postcodes_in_New_Zealand */ -class NZFormatter implements CountryPostcodeFormatter +final class NZFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/OMFormatter.php b/src/Formatter/OMFormatter.php index 4870410..740e803 100644 --- a/src/Formatter/OMFormatter.php +++ b/src/Formatter/OMFormatter.php @@ -14,7 +14,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class OMFormatter implements CountryPostcodeFormatter +final class OMFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/PAFormatter.php b/src/Formatter/PAFormatter.php index ee56978..d8d8741 100644 --- a/src/Formatter/PAFormatter.php +++ b/src/Formatter/PAFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Panama */ -class PAFormatter implements CountryPostcodeFormatter +final class PAFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/PEFormatter.php b/src/Formatter/PEFormatter.php index 2e82607..ef840ee 100644 --- a/src/Formatter/PEFormatter.php +++ b/src/Formatter/PEFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/List_of_postal_codes_in_Peru */ -class PEFormatter implements CountryPostcodeFormatter +final class PEFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/PFFormatter.php b/src/Formatter/PFFormatter.php index 8eb40f8..b31c10c 100644 --- a/src/Formatter/PFFormatter.php +++ b/src/Formatter/PFFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class PFFormatter implements CountryPostcodeFormatter +final class PFFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/PGFormatter.php b/src/Formatter/PGFormatter.php index a12d917..42a744f 100644 --- a/src/Formatter/PGFormatter.php +++ b/src/Formatter/PGFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class PGFormatter implements CountryPostcodeFormatter +final class PGFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/PHFormatter.php b/src/Formatter/PHFormatter.php index 5ee1cb8..c746fe6 100644 --- a/src/Formatter/PHFormatter.php +++ b/src/Formatter/PHFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/List_of_ZIP_codes_in_the_Philippines */ -class PHFormatter implements CountryPostcodeFormatter +final class PHFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/PKFormatter.php b/src/Formatter/PKFormatter.php index a56f835..13f870d 100644 --- a/src/Formatter/PKFormatter.php +++ b/src/Formatter/PKFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/List_of_postal_codes_in_Pakistan */ -class PKFormatter implements CountryPostcodeFormatter +final class PKFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/PLFormatter.php b/src/Formatter/PLFormatter.php index 720ee70..4c0fc47 100644 --- a/src/Formatter/PLFormatter.php +++ b/src/Formatter/PLFormatter.php @@ -18,7 +18,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class PLFormatter implements CountryPostcodeFormatter +final class PLFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/PMFormatter.php b/src/Formatter/PMFormatter.php index 27d56e2..d937311 100644 --- a/src/Formatter/PMFormatter.php +++ b/src/Formatter/PMFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class PMFormatter implements CountryPostcodeFormatter +final class PMFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/PNFormatter.php b/src/Formatter/PNFormatter.php index 2b08a09..dc82cb0 100644 --- a/src/Formatter/PNFormatter.php +++ b/src/Formatter/PNFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class PNFormatter implements CountryPostcodeFormatter +final class PNFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/PRFormatter.php b/src/Formatter/PRFormatter.php index 8edc2fa..dfa1403 100644 --- a/src/Formatter/PRFormatter.php +++ b/src/Formatter/PRFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Puerto_Rico */ -class PRFormatter implements CountryPostcodeFormatter +final class PRFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/PSFormatter.php b/src/Formatter/PSFormatter.php index 8fd65be..ec867e9 100644 --- a/src/Formatter/PSFormatter.php +++ b/src/Formatter/PSFormatter.php @@ -14,7 +14,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class PSFormatter implements CountryPostcodeFormatter +final class PSFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/PTFormatter.php b/src/Formatter/PTFormatter.php index 336ea8e..ae4b03c 100644 --- a/src/Formatter/PTFormatter.php +++ b/src/Formatter/PTFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Portugal */ -class PTFormatter implements CountryPostcodeFormatter +final class PTFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/PWFormatter.php b/src/Formatter/PWFormatter.php index 8516b7a..7e73d73 100644 --- a/src/Formatter/PWFormatter.php +++ b/src/Formatter/PWFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class PWFormatter implements CountryPostcodeFormatter +final class PWFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/PYFormatter.php b/src/Formatter/PYFormatter.php index 09eba85..9cc6afc 100644 --- a/src/Formatter/PYFormatter.php +++ b/src/Formatter/PYFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/List_of_postal_codes_of_Paraguay */ -class PYFormatter implements CountryPostcodeFormatter +final class PYFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/REFormatter.php b/src/Formatter/REFormatter.php index 47177a6..f67d0ea 100644 --- a/src/Formatter/REFormatter.php +++ b/src/Formatter/REFormatter.php @@ -14,7 +14,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class REFormatter implements CountryPostcodeFormatter +final class REFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/ROFormatter.php b/src/Formatter/ROFormatter.php index 55eec0a..861c2dc 100644 --- a/src/Formatter/ROFormatter.php +++ b/src/Formatter/ROFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Romania */ -class ROFormatter implements CountryPostcodeFormatter +final class ROFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/RSFormatter.php b/src/Formatter/RSFormatter.php index c75df42..4632371 100644 --- a/src/Formatter/RSFormatter.php +++ b/src/Formatter/RSFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Serbia */ -class RSFormatter implements CountryPostcodeFormatter +final class RSFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/RUFormatter.php b/src/Formatter/RUFormatter.php index f1778b2..99e53ac 100644 --- a/src/Formatter/RUFormatter.php +++ b/src/Formatter/RUFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Russia */ -class RUFormatter implements CountryPostcodeFormatter +final class RUFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/SAFormatter.php b/src/Formatter/SAFormatter.php index 6a266a7..1b58f95 100644 --- a/src/Formatter/SAFormatter.php +++ b/src/Formatter/SAFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class SAFormatter implements CountryPostcodeFormatter +final class SAFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/SDFormatter.php b/src/Formatter/SDFormatter.php index 88a86c9..ab491d1 100644 --- a/src/Formatter/SDFormatter.php +++ b/src/Formatter/SDFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class SDFormatter implements CountryPostcodeFormatter +final class SDFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/SEFormatter.php b/src/Formatter/SEFormatter.php index 3d87daf..04b24fd 100644 --- a/src/Formatter/SEFormatter.php +++ b/src/Formatter/SEFormatter.php @@ -15,7 +15,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Sweden */ -class SEFormatter implements CountryPostcodeFormatter +final class SEFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/SGFormatter.php b/src/Formatter/SGFormatter.php index 4fadc7b..85324ea 100644 --- a/src/Formatter/SGFormatter.php +++ b/src/Formatter/SGFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Singapore */ -class SGFormatter implements CountryPostcodeFormatter +final class SGFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/SHFormatter.php b/src/Formatter/SHFormatter.php index 6d4edc3..3e4b4f4 100644 --- a/src/Formatter/SHFormatter.php +++ b/src/Formatter/SHFormatter.php @@ -15,7 +15,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class SHFormatter implements CountryPostcodeFormatter +final class SHFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/SIFormatter.php b/src/Formatter/SIFormatter.php index 32c58af..a3813ec 100644 --- a/src/Formatter/SIFormatter.php +++ b/src/Formatter/SIFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Slovenia */ -class SIFormatter implements CountryPostcodeFormatter +final class SIFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/SJFormatter.php b/src/Formatter/SJFormatter.php index fb7e871..36d7dbb 100644 --- a/src/Formatter/SJFormatter.php +++ b/src/Formatter/SJFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Norway */ -class SJFormatter implements CountryPostcodeFormatter +final class SJFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/SKFormatter.php b/src/Formatter/SKFormatter.php index db14cae..c2558fc 100644 --- a/src/Formatter/SKFormatter.php +++ b/src/Formatter/SKFormatter.php @@ -17,7 +17,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class SKFormatter implements CountryPostcodeFormatter +final class SKFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/SMFormatter.php b/src/Formatter/SMFormatter.php index 90e0a25..cfdf214 100644 --- a/src/Formatter/SMFormatter.php +++ b/src/Formatter/SMFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class SMFormatter implements CountryPostcodeFormatter +final class SMFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/SNFormatter.php b/src/Formatter/SNFormatter.php index 0fb9164..f0ec5e7 100644 --- a/src/Formatter/SNFormatter.php +++ b/src/Formatter/SNFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class SNFormatter implements CountryPostcodeFormatter +final class SNFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/SVFormatter.php b/src/Formatter/SVFormatter.php index 41dc8a3..c1e75e5 100644 --- a/src/Formatter/SVFormatter.php +++ b/src/Formatter/SVFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class SVFormatter implements CountryPostcodeFormatter +final class SVFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/SZFormatter.php b/src/Formatter/SZFormatter.php index 186e529..a0cc567 100644 --- a/src/Formatter/SZFormatter.php +++ b/src/Formatter/SZFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class SZFormatter implements CountryPostcodeFormatter +final class SZFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/TCFormatter.php b/src/Formatter/TCFormatter.php index 8292c22..15cc410 100644 --- a/src/Formatter/TCFormatter.php +++ b/src/Formatter/TCFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class TCFormatter implements CountryPostcodeFormatter +final class TCFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/TFFormatter.php b/src/Formatter/TFFormatter.php index ec1cda6..7ba8990 100644 --- a/src/Formatter/TFFormatter.php +++ b/src/Formatter/TFFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class TFFormatter implements CountryPostcodeFormatter +final class TFFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/THFormatter.php b/src/Formatter/THFormatter.php index bec14ff..1e4a6a1 100644 --- a/src/Formatter/THFormatter.php +++ b/src/Formatter/THFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Thailand */ -class THFormatter implements CountryPostcodeFormatter +final class THFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/TJFormatter.php b/src/Formatter/TJFormatter.php index 11a8053..e92ed46 100644 --- a/src/Formatter/TJFormatter.php +++ b/src/Formatter/TJFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class TJFormatter implements CountryPostcodeFormatter +final class TJFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/TMFormatter.php b/src/Formatter/TMFormatter.php index df8b496..0aa5694 100644 --- a/src/Formatter/TMFormatter.php +++ b/src/Formatter/TMFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class TMFormatter implements CountryPostcodeFormatter +final class TMFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/TNFormatter.php b/src/Formatter/TNFormatter.php index b77c9b0..57d2bf1 100644 --- a/src/Formatter/TNFormatter.php +++ b/src/Formatter/TNFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Tunisia */ -class TNFormatter implements CountryPostcodeFormatter +final class TNFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/TRFormatter.php b/src/Formatter/TRFormatter.php index 1ded15e..5b36400 100644 --- a/src/Formatter/TRFormatter.php +++ b/src/Formatter/TRFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Turkey */ -class TRFormatter implements CountryPostcodeFormatter +final class TRFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/TTFormatter.php b/src/Formatter/TTFormatter.php index 31e458b..1f2c68f 100644 --- a/src/Formatter/TTFormatter.php +++ b/src/Formatter/TTFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Trinidad_and_Tobago */ -class TTFormatter implements CountryPostcodeFormatter +final class TTFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/TWFormatter.php b/src/Formatter/TWFormatter.php index 3fb2728..3285f47 100644 --- a/src/Formatter/TWFormatter.php +++ b/src/Formatter/TWFormatter.php @@ -16,7 +16,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/List_of_postal_codes_in_Taiwan */ -class TWFormatter implements CountryPostcodeFormatter +final class TWFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/TZFormatter.php b/src/Formatter/TZFormatter.php index fdff22e..e23d2d9 100644 --- a/src/Formatter/TZFormatter.php +++ b/src/Formatter/TZFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class TZFormatter implements CountryPostcodeFormatter +final class TZFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/UAFormatter.php b/src/Formatter/UAFormatter.php index 6766ba2..086faa5 100644 --- a/src/Formatter/UAFormatter.php +++ b/src/Formatter/UAFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Ukraine */ -class UAFormatter implements CountryPostcodeFormatter +final class UAFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/USFormatter.php b/src/Formatter/USFormatter.php index 4f28d52..dfeea36 100644 --- a/src/Formatter/USFormatter.php +++ b/src/Formatter/USFormatter.php @@ -16,7 +16,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class USFormatter implements CountryPostcodeFormatter +final class USFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/UYFormatter.php b/src/Formatter/UYFormatter.php index c59f0d1..fa37694 100644 --- a/src/Formatter/UYFormatter.php +++ b/src/Formatter/UYFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class UYFormatter implements CountryPostcodeFormatter +final class UYFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/UZFormatter.php b/src/Formatter/UZFormatter.php index d622aec..49001a4 100644 --- a/src/Formatter/UZFormatter.php +++ b/src/Formatter/UZFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class UZFormatter implements CountryPostcodeFormatter +final class UZFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/VAFormatter.php b/src/Formatter/VAFormatter.php index fdd054c..f9f3c24 100644 --- a/src/Formatter/VAFormatter.php +++ b/src/Formatter/VAFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class VAFormatter implements CountryPostcodeFormatter +final class VAFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/VCFormatter.php b/src/Formatter/VCFormatter.php index 030f6d3..b434630 100644 --- a/src/Formatter/VCFormatter.php +++ b/src/Formatter/VCFormatter.php @@ -14,7 +14,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class VCFormatter implements CountryPostcodeFormatter +final class VCFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/VEFormatter.php b/src/Formatter/VEFormatter.php index 9970d81..9005937 100644 --- a/src/Formatter/VEFormatter.php +++ b/src/Formatter/VEFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class VEFormatter implements CountryPostcodeFormatter +final class VEFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/VGFormatter.php b/src/Formatter/VGFormatter.php index 25c2574..d77e75c 100644 --- a/src/Formatter/VGFormatter.php +++ b/src/Formatter/VGFormatter.php @@ -14,7 +14,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class VGFormatter implements CountryPostcodeFormatter +final class VGFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/VIFormatter.php b/src/Formatter/VIFormatter.php index d9d016b..3159766 100644 --- a/src/Formatter/VIFormatter.php +++ b/src/Formatter/VIFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class VIFormatter implements CountryPostcodeFormatter +final class VIFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/VNFormatter.php b/src/Formatter/VNFormatter.php index 2f26374..14ed136 100644 --- a/src/Formatter/VNFormatter.php +++ b/src/Formatter/VNFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Vietnam */ -class VNFormatter implements CountryPostcodeFormatter +final class VNFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/WFFormatter.php b/src/Formatter/WFFormatter.php index 958f37a..ea93fd0 100644 --- a/src/Formatter/WFFormatter.php +++ b/src/Formatter/WFFormatter.php @@ -14,7 +14,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class WFFormatter implements CountryPostcodeFormatter +final class WFFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/WSFormatter.php b/src/Formatter/WSFormatter.php index 10df421..c9f8317 100644 --- a/src/Formatter/WSFormatter.php +++ b/src/Formatter/WSFormatter.php @@ -14,7 +14,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class WSFormatter implements CountryPostcodeFormatter +final class WSFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/YTFormatter.php b/src/Formatter/YTFormatter.php index 98c0e23..da23176 100644 --- a/src/Formatter/YTFormatter.php +++ b/src/Formatter/YTFormatter.php @@ -14,7 +14,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class YTFormatter implements CountryPostcodeFormatter +final class YTFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/ZAFormatter.php b/src/Formatter/ZAFormatter.php index 22b061d..660e9c9 100644 --- a/src/Formatter/ZAFormatter.php +++ b/src/Formatter/ZAFormatter.php @@ -14,7 +14,7 @@ * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/List_of_postal_codes_in_South_Africa */ -class ZAFormatter implements CountryPostcodeFormatter +final class ZAFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/Formatter/ZMFormatter.php b/src/Formatter/ZMFormatter.php index bccf00c..d0a5383 100644 --- a/src/Formatter/ZMFormatter.php +++ b/src/Formatter/ZMFormatter.php @@ -13,7 +13,7 @@ * * @see https://en.wikipedia.org/wiki/List_of_postal_codes */ -class ZMFormatter implements CountryPostcodeFormatter +final class ZMFormatter implements CountryPostcodeFormatter { public function format(string $postcode) : ?string { diff --git a/src/InvalidPostcodeException.php b/src/InvalidPostcodeException.php index 425aa09..ef32f82 100644 --- a/src/InvalidPostcodeException.php +++ b/src/InvalidPostcodeException.php @@ -7,7 +7,7 @@ /** * Exception thrown when trying to format an invalid postcode. */ -class InvalidPostcodeException extends \Exception +final class InvalidPostcodeException extends \Exception { protected string $postcode; protected string $country; diff --git a/src/PostcodeFormatter.php b/src/PostcodeFormatter.php index 1cb69fc..7206523 100644 --- a/src/PostcodeFormatter.php +++ b/src/PostcodeFormatter.php @@ -7,7 +7,7 @@ /** * Formats and validates postcodes. */ -class PostcodeFormatter +final class PostcodeFormatter { /** * The country postcode formatters, indexed by country code. diff --git a/src/UnknownCountryException.php b/src/UnknownCountryException.php index cd68685..8f48eba 100644 --- a/src/UnknownCountryException.php +++ b/src/UnknownCountryException.php @@ -7,7 +7,7 @@ /** * Exception thrown when an unknown country code is provided. */ -class UnknownCountryException extends \Exception +final class UnknownCountryException extends \Exception { protected string $country;