From e78f9d0bd8bc22e5abfc3c33c83db554f3e68902 Mon Sep 17 00:00:00 2001 From: marcelmanzel Date: Wed, 6 Dec 2023 16:31:03 +0100 Subject: [PATCH] OXDEV-7647: Change all protected methods to private in ShopSettingRepository --- src/Setting/Infrastructure/ShopSettingRepository.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Setting/Infrastructure/ShopSettingRepository.php b/src/Setting/Infrastructure/ShopSettingRepository.php index 503db96..badb8f0 100644 --- a/src/Setting/Infrastructure/ShopSettingRepository.php +++ b/src/Setting/Infrastructure/ShopSettingRepository.php @@ -111,7 +111,7 @@ public function getAssocCollection(string $name): array return $this->getArrayFromSettingValue($setting); } - protected function getShopSetting(string $name): ShopConfigurationSetting + private function getShopSetting(string $name): ShopConfigurationSetting { return $this->configurationSettingDao->get($name, $this->basicContext->getCurrentShopId()); } @@ -147,7 +147,7 @@ public function getSettingsList(): array /** * @throws WrongSettingTypeException */ - protected function checkSettingType(ShopConfigurationSetting $value, string $requiredType): void + private function checkSettingType(ShopConfigurationSetting $value, string $requiredType): void { if ($value->getType() !== $requiredType) { throw new WrongSettingTypeException(); @@ -157,7 +157,7 @@ protected function checkSettingType(ShopConfigurationSetting $value, string $req /** * @throws WrongSettingValueException */ - protected function getArrayFromSettingValue(ShopConfigurationSetting $setting): array + private function getArrayFromSettingValue(ShopConfigurationSetting $setting): array { $value = $setting->getValue();