Chris@0: setOptionDefaults($storage, $options, $level); Chris@0: } Chris@0: Chris@0: /** Chris@0: * Allows to set the defined options. Chris@0: * Chris@0: * @param array $options Chris@0: * Chris@0: * @return $this Chris@0: */ Chris@0: public function setDefinedOptions($options) { Chris@0: $this->definedOptions = $options; Chris@0: Chris@0: return $this; Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: */ Chris@0: protected function defineOptions() { Chris@0: // Normally we provide a limited set of options, but for testing purposes we Chris@0: // make it possible to set the defined options statically. Chris@0: return $this->definedOptions; Chris@0: } Chris@0: Chris@0: }