protected function restoreState()
    {
        // Restores state
        foreach ($this->getIniKeys() as $key) {
            ini_set($key, $this->getHistory($key));
        }

        // For chaining
        return $this;
    }