public function setVariables($variables)
    {
        if (!is_array($variables)) {
            return $this;
        }
        foreach ($variables as $key => $value) {
            $this->setVariable($key, $value);
        }

        return $this;
    }