getSettings()) { foreach ($this->getSettings() as $setting) { if ($setting->getName() == $name) { return $setting; } } } return null; } public function getSettingValue($name): ?string { if ($this->getSettings()) { foreach ($this->getSettings() as $setting) { if ($setting->getName() == $name) { return $setting->getValue(); } } } return null; } }