diff --git a/Makefile b/Makefile index 3d43bb8..0f13b18 100644 --- a/Makefile +++ b/Makefile @@ -62,8 +62,8 @@ generate: \ src/General/Transforms/HasContextTransforms.php \ src/Numbers/CurrencyData.php \ src/Supplemental/Territory/TerritoryData.php \ - src/Units/SequenceCompanion.php \ - src/Units/UnitsCompanion.php + src/Supplemental/Units/SequenceCompanion.php \ + src/Supplemental/Units/UnitsCompanion.php src/Core/LocaleData.php: generator/src/Command/GenerateLocaleData.php $(GENERATE) $@ @@ -77,8 +77,8 @@ src/Numbers/CurrencyData.php: generator/src/Command/GenerateCurrencyData.php src/Supplemental/Territory/TerritoryData.php: generator/src/Command/GenerateTerritoryData.php $(GENERATE) $@ -src/Units/SequenceCompanion.php: generator/src/Command/GenerateSequenceCompanion.php +src/Supplemental/Units/SequenceCompanion.php: generator/src/Command/GenerateSequenceCompanion.php $(GENERATE) $@ -src/Units/UnitsCompanion.php: generator/src/Command/GenerateUnitsCompanion.php +src/Supplemental/Units/UnitsCompanion.php: generator/src/Command/GenerateUnitsCompanion.php $(GENERATE) $@ diff --git a/generator/src/Command/GenerateSequenceCompanion.php b/generator/src/Command/GenerateSequenceCompanion.php index 12a687b..2c2b347 100644 --- a/generator/src/Command/GenerateSequenceCompanion.php +++ b/generator/src/Command/GenerateSequenceCompanion.php @@ -11,7 +11,7 @@ #[AsCommand(self::GENERATED_FILE)] final class GenerateSequenceCompanion extends Command { - private const GENERATED_FILE = 'src/Units/SequenceCompanion.php'; + private const GENERATED_FILE = 'src/Supplemental/Units/SequenceCompanion.php'; public function __construct( private readonly Repository $repository @@ -69,7 +69,7 @@ private function render( * {@see \\$class} */ - namespace ICanBoogie\CLDR\Units; + namespace ICanBoogie\CLDR\Supplemental\Units; /** * @internal diff --git a/generator/src/Command/GenerateUnitsCompanion.php b/generator/src/Command/GenerateUnitsCompanion.php index 4780f82..dbd696e 100644 --- a/generator/src/Command/GenerateUnitsCompanion.php +++ b/generator/src/Command/GenerateUnitsCompanion.php @@ -11,7 +11,7 @@ #[AsCommand(self::GENERATED_FILE)] final class GenerateUnitsCompanion extends Command { - private const GENERATED_FILE = 'src/Units/UnitsCompanion.php'; + private const GENERATED_FILE = 'src/Supplemental/Units/UnitsCompanion.php'; public function __construct( private readonly Repository $repository @@ -72,7 +72,7 @@ private function render( * {@see \\$class} */ - namespace ICanBoogie\CLDR\Units; + namespace ICanBoogie\CLDR\Supplemental\Units; /** * @internal diff --git a/src/Core/Locale.php b/src/Core/Locale.php index ba80fe8..7469903 100644 --- a/src/Core/Locale.php +++ b/src/Core/Locale.php @@ -16,7 +16,7 @@ use ICanBoogie\CLDR\Numbers\NumberFormatterLocalized; use ICanBoogie\CLDR\Numbers\Numbers; use ICanBoogie\CLDR\Repository; -use ICanBoogie\CLDR\Units\Units; +use ICanBoogie\CLDR\Supplemental\Units\Units; use ICanBoogie\CLDR\Warmable; use WeakMap; diff --git a/src/Units/NumberPerUnit.php b/src/Supplemental/Units/NumberPerUnit.php similarity index 96% rename from src/Units/NumberPerUnit.php rename to src/Supplemental/Units/NumberPerUnit.php index b9286a2..22a3fa7 100644 --- a/src/Units/NumberPerUnit.php +++ b/src/Supplemental/Units/NumberPerUnit.php @@ -1,6 +1,6 @@