Skip to content

Commit

Permalink
remove deprecated code
Browse files Browse the repository at this point in the history
  • Loading branch information
AurelienPillevesse committed Oct 15, 2024
1 parent f0659c9 commit 26dcd5a
Show file tree
Hide file tree
Showing 13 changed files with 18 additions and 15 deletions.
3 changes: 3 additions & 0 deletions src/Converter/DateCode2005ToDateCode2475Converter.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
use Tiime\EN16931\DataType\DateCode2005;
use Tiime\EN16931\DataType\DateCode2475;

/**
* @deprecated
*/
class DateCode2005ToDateCode2475Converter
{
public static function convert(DateCode2005 $dateCode2005): DateCode2475
Expand Down
2 changes: 1 addition & 1 deletion src/DataType/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ public function getPostCode(): ?string;

public function getCountrySubdivision(): ?string;

public function getCountryCode(): CountryAlpha2Code;
public function getCountryCode(): \Tiime\EN16931\Codelist\CountryAlpha2Code;
}
2 changes: 1 addition & 1 deletion src/DataType/BinaryObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
) {
}
Expand Down
2 changes: 1 addition & 1 deletion src/DataType/Identifier/BuyerIdentifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Tiime\EN16931\DataType\Identifier;

use Tiime\EN16931\DataType\InternationalCodeDesignator;
use Tiime\EN16931\Codelist\InternationalCodeDesignator;

class BuyerIdentifier
{
Expand Down
4 changes: 2 additions & 2 deletions src/DataType/Identifier/ElectronicAddressIdentifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
}
}
4 changes: 2 additions & 2 deletions src/DataType/Identifier/ItemClassificationIdentifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
) {
}
Expand Down
2 changes: 1 addition & 1 deletion src/DataType/Identifier/LegalRegistrationIdentifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Tiime\EN16931\DataType\Identifier;

use Tiime\EN16931\DataType\InternationalCodeDesignator;
use Tiime\EN16931\Codelist\InternationalCodeDesignator;

class LegalRegistrationIdentifier
{
Expand Down
2 changes: 1 addition & 1 deletion src/DataType/Identifier/LocationIdentifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Tiime\EN16931\DataType\Identifier;

use Tiime\EN16931\DataType\InternationalCodeDesignator;
use Tiime\EN16931\Codelist\InternationalCodeDesignator;

class LocationIdentifier
{
Expand Down
4 changes: 2 additions & 2 deletions src/DataType/Identifier/ObjectIdentifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
}
}
2 changes: 1 addition & 1 deletion src/DataType/Identifier/PayeeIdentifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Tiime\EN16931\DataType\Identifier;

use Tiime\EN16931\DataType\InternationalCodeDesignator;
use Tiime\EN16931\Codelist\InternationalCodeDesignator;

class PayeeIdentifier
{
Expand Down
2 changes: 1 addition & 1 deletion src/DataType/Identifier/SellerIdentifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Tiime\EN16931\DataType\Identifier;

use Tiime\EN16931\DataType\InternationalCodeDesignator;
use Tiime\EN16931\Codelist\InternationalCodeDesignator;

class SellerIdentifier
{
Expand Down
2 changes: 1 addition & 1 deletion src/DataType/Identifier/StandardItemIdentifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Tiime\EN16931\DataType\Identifier;

use Tiime\EN16931\DataType\InternationalCodeDesignator;
use Tiime\EN16931\Codelist\InternationalCodeDesignator;

class StandardItemIdentifier
{
Expand Down
2 changes: 1 addition & 1 deletion src/DataType/Identifier/VatIdentifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Tiime\EN16931\DataType\Identifier;

use Tiime\EN16931\DataType\CountryAlpha2Code;
use Tiime\EN16931\Codelist\CountryAlpha2Code;

class VatIdentifier
{
Expand Down

0 comments on commit 26dcd5a

Please sign in to comment.