public function set($params1, $params2 = null)
    {
        if (is_string($params1)) {
            $this->variables[$params1] = $params2;
        } elseif (is_array($params1)) {
            $this->variables = $params1 + $this->variables;
        }
    }