public function getSettings() { if ($this->isCached()) { $settings = $this->cachedSettings(); } else { $settings = $this->prepareSettings(); } return $this->mergeRules($settings); }