code: public function setVariables(array $variables)
      {
          $this->variables = [];
  
          foreach ($variables as $variable) {
              $this->addVariable($variable);
          }
  
          return $this;
      }
docs: Set variables
  
  @param array $variables
  @return object