public function __construct(array $settings) { $this->settings = $settings; $this->ensureSettings(); $this->ensureSettingsAreAllStrings(); }