public function setVariables(array $variables) { foreach ($variables as $variable) { $this->addVariable($variable); } return $this; }