From 26dcd5a20ddafb1c91632dc77e1f076c88f74aa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Pillevesse?= Date: Tue, 15 Oct 2024 16:00:42 +0200 Subject: [PATCH] remove deprecated code --- src/Converter/DateCode2005ToDateCode2475Converter.php | 3 +++ src/DataType/Address.php | 2 +- src/DataType/BinaryObject.php | 2 +- src/DataType/Identifier/BuyerIdentifier.php | 2 +- src/DataType/Identifier/ElectronicAddressIdentifier.php | 4 ++-- src/DataType/Identifier/ItemClassificationIdentifier.php | 4 ++-- src/DataType/Identifier/LegalRegistrationIdentifier.php | 2 +- src/DataType/Identifier/LocationIdentifier.php | 2 +- src/DataType/Identifier/ObjectIdentifier.php | 4 ++-- src/DataType/Identifier/PayeeIdentifier.php | 2 +- src/DataType/Identifier/SellerIdentifier.php | 2 +- src/DataType/Identifier/StandardItemIdentifier.php | 2 +- src/DataType/Identifier/VatIdentifier.php | 2 +- 13 files changed, 18 insertions(+), 15 deletions(-) diff --git a/src/Converter/DateCode2005ToDateCode2475Converter.php b/src/Converter/DateCode2005ToDateCode2475Converter.php index 4365827..cd67037 100644 --- a/src/Converter/DateCode2005ToDateCode2475Converter.php +++ b/src/Converter/DateCode2005ToDateCode2475Converter.php @@ -7,6 +7,9 @@ use Tiime\EN16931\DataType\DateCode2005; use Tiime\EN16931\DataType\DateCode2475; +/** + * @deprecated + */ class DateCode2005ToDateCode2475Converter { public static function convert(DateCode2005 $dateCode2005): DateCode2475 diff --git a/src/DataType/Address.php b/src/DataType/Address.php index 5f7450f..8af1998 100644 --- a/src/DataType/Address.php +++ b/src/DataType/Address.php @@ -16,5 +16,5 @@ public function getPostCode(): ?string; public function getCountrySubdivision(): ?string; - public function getCountryCode(): CountryAlpha2Code; + public function getCountryCode(): \Tiime\EN16931\Codelist\CountryAlpha2Code; } diff --git a/src/DataType/BinaryObject.php b/src/DataType/BinaryObject.php index 5f06930..663217d 100644 --- a/src/DataType/BinaryObject.php +++ b/src/DataType/BinaryObject.php @@ -8,7 +8,7 @@ class BinaryObject { public function __construct( public readonly string $content, - public readonly MimeCode $mimeCode, + public readonly \Tiime\EN16931\Codelist\MimeCode $mimeCode, public readonly string $filename ) { } diff --git a/src/DataType/Identifier/BuyerIdentifier.php b/src/DataType/Identifier/BuyerIdentifier.php index 25de85d..91deed8 100644 --- a/src/DataType/Identifier/BuyerIdentifier.php +++ b/src/DataType/Identifier/BuyerIdentifier.php @@ -4,7 +4,7 @@ namespace Tiime\EN16931\DataType\Identifier; -use Tiime\EN16931\DataType\InternationalCodeDesignator; +use Tiime\EN16931\Codelist\InternationalCodeDesignator; class BuyerIdentifier { diff --git a/src/DataType/Identifier/ElectronicAddressIdentifier.php b/src/DataType/Identifier/ElectronicAddressIdentifier.php index 58f34b9..110d5df 100644 --- a/src/DataType/Identifier/ElectronicAddressIdentifier.php +++ b/src/DataType/Identifier/ElectronicAddressIdentifier.php @@ -4,11 +4,11 @@ namespace Tiime\EN16931\DataType\Identifier; -use Tiime\EN16931\DataType\ElectronicAddressScheme; +use Tiime\EN16931\Codelist\ElectronicAddressSchemeCode; class ElectronicAddressIdentifier { - public function __construct(public readonly string $value, public readonly ElectronicAddressScheme $scheme) + public function __construct(public readonly string $value, public readonly ElectronicAddressSchemeCode $scheme) { } } diff --git a/src/DataType/Identifier/ItemClassificationIdentifier.php b/src/DataType/Identifier/ItemClassificationIdentifier.php index 96bcf09..730095b 100644 --- a/src/DataType/Identifier/ItemClassificationIdentifier.php +++ b/src/DataType/Identifier/ItemClassificationIdentifier.php @@ -4,13 +4,13 @@ namespace Tiime\EN16931\DataType\Identifier; -use Tiime\EN16931\DataType\ItemTypeCode; +use Tiime\EN16931\Codelist\ItemTypeCodeUNTDID7143; class ItemClassificationIdentifier { public function __construct( public readonly string $value, - public readonly ItemTypeCode $scheme, + public readonly ItemTypeCodeUNTDID7143 $scheme, public readonly ?string $version = null, ) { } diff --git a/src/DataType/Identifier/LegalRegistrationIdentifier.php b/src/DataType/Identifier/LegalRegistrationIdentifier.php index 2adcc0c..431f267 100644 --- a/src/DataType/Identifier/LegalRegistrationIdentifier.php +++ b/src/DataType/Identifier/LegalRegistrationIdentifier.php @@ -4,7 +4,7 @@ namespace Tiime\EN16931\DataType\Identifier; -use Tiime\EN16931\DataType\InternationalCodeDesignator; +use Tiime\EN16931\Codelist\InternationalCodeDesignator; class LegalRegistrationIdentifier { diff --git a/src/DataType/Identifier/LocationIdentifier.php b/src/DataType/Identifier/LocationIdentifier.php index 493ad14..9dc220c 100644 --- a/src/DataType/Identifier/LocationIdentifier.php +++ b/src/DataType/Identifier/LocationIdentifier.php @@ -4,7 +4,7 @@ namespace Tiime\EN16931\DataType\Identifier; -use Tiime\EN16931\DataType\InternationalCodeDesignator; +use Tiime\EN16931\Codelist\InternationalCodeDesignator; class LocationIdentifier { diff --git a/src/DataType/Identifier/ObjectIdentifier.php b/src/DataType/Identifier/ObjectIdentifier.php index 638061c..3573afb 100644 --- a/src/DataType/Identifier/ObjectIdentifier.php +++ b/src/DataType/Identifier/ObjectIdentifier.php @@ -4,11 +4,11 @@ namespace Tiime\EN16931\DataType\Identifier; -use Tiime\EN16931\DataType\ObjectSchemeCode; +use Tiime\EN16931\Codelist\ReferenceQualifierCodeUNTDID1153; class ObjectIdentifier { - public function __construct(public readonly string $value, public readonly ?ObjectSchemeCode $scheme = null) + public function __construct(public readonly string $value, public readonly ?ReferenceQualifierCodeUNTDID1153 $scheme = null) { } } diff --git a/src/DataType/Identifier/PayeeIdentifier.php b/src/DataType/Identifier/PayeeIdentifier.php index 38edc1b..8c1121c 100644 --- a/src/DataType/Identifier/PayeeIdentifier.php +++ b/src/DataType/Identifier/PayeeIdentifier.php @@ -4,7 +4,7 @@ namespace Tiime\EN16931\DataType\Identifier; -use Tiime\EN16931\DataType\InternationalCodeDesignator; +use Tiime\EN16931\Codelist\InternationalCodeDesignator; class PayeeIdentifier { diff --git a/src/DataType/Identifier/SellerIdentifier.php b/src/DataType/Identifier/SellerIdentifier.php index 9592f60..48ef165 100644 --- a/src/DataType/Identifier/SellerIdentifier.php +++ b/src/DataType/Identifier/SellerIdentifier.php @@ -4,7 +4,7 @@ namespace Tiime\EN16931\DataType\Identifier; -use Tiime\EN16931\DataType\InternationalCodeDesignator; +use Tiime\EN16931\Codelist\InternationalCodeDesignator; class SellerIdentifier { diff --git a/src/DataType/Identifier/StandardItemIdentifier.php b/src/DataType/Identifier/StandardItemIdentifier.php index b9e9adf..1c5531f 100644 --- a/src/DataType/Identifier/StandardItemIdentifier.php +++ b/src/DataType/Identifier/StandardItemIdentifier.php @@ -4,7 +4,7 @@ namespace Tiime\EN16931\DataType\Identifier; -use Tiime\EN16931\DataType\InternationalCodeDesignator; +use Tiime\EN16931\Codelist\InternationalCodeDesignator; class StandardItemIdentifier { diff --git a/src/DataType/Identifier/VatIdentifier.php b/src/DataType/Identifier/VatIdentifier.php index ada4180..04b9dd3 100644 --- a/src/DataType/Identifier/VatIdentifier.php +++ b/src/DataType/Identifier/VatIdentifier.php @@ -4,7 +4,7 @@ namespace Tiime\EN16931\DataType\Identifier; -use Tiime\EN16931\DataType\CountryAlpha2Code; +use Tiime\EN16931\Codelist\CountryAlpha2Code; class VatIdentifier {