original_string: public function assign($name, $value = null)
      {
          if (is_array($name)) {
              $this->data = $name + $this->data;
          } else {
              $this->data[$name] = $value;
          }
          return $this;
      }
code: public function assign($name, $value = null)
      {
          if (is_array($name)) {
              $this->data = $name + $this->data;
          } else {
              $this->data[$name] = $value;
          }
          return $this;
      }
code_tokens: public function assign ( $ name , $ value = null ) { if ( is_array ( $ name ) ) { $ this -> data = $ name + $ this -> data ; } else { $ this -> data [ $ name ] = $ value ; } return $ this ; }
docstring: Assign variables to template
  
  @param string|array $name  The name of the variable or variables array
  @param mixed  $value The value of the variable
  @return $this
docstring_tokens: Assign variables to template