/** * Sets the storage to use. * * @param WPSEO_Configuration_Storage $storage Storage to use. */ public function set_storage(WPSEO_Configuration_Storage $storage) { $this->set_adapter($storage->get_adapter()); foreach ($this->components as $component) { $storage->add_field($component->get_field()); } }