Skip to content

Commit

Permalink
OXDEV-7647: Change all protected methods to private in ShopSettingRep…
Browse files Browse the repository at this point in the history
…ository
  • Loading branch information
MarcelOxid committed Dec 6, 2023
1 parent 8dba2d7 commit e78f9d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Setting/Infrastructure/ShopSettingRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down Expand Up @@ -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();
Expand All @@ -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();

Expand Down

0 comments on commit e78f9d0

Please sign in to comment.