/** * Store a variable in the general store. * * These variables have to be reset for every run of the batch. * * @param string $name Name of the variable * @param mixed $variable Something that can be serialized * @return \MUtil_Batch_BatchAbstract (continuation pattern) */ public function setVariable($name, $variable) { parent::setVariable($name, $variable); $this->source->addRegistryContainer($this->variables, 'variables'); return $this; }