original_string: public function set($name, $value = null)
      {
          if (!is_array($name)) {
              $this->data[$name] = $value;
          } else {
              foreach ($name as $key => $value) {
                  $this->data[$key] = $value;
              }
          }
          return $this;
      }
code: public function set($name, $value = null)
      {
          if (!is_array($name)) {
              $this->data[$name] = $value;
          } else {
              foreach ($name as $key => $value) {
                  $this->data[$key] = $value;
              }
          }
          return $this;
      }
code_tokens: public function set ( $ name , $ value = null ) { if ( ! is_array ( $ name ) ) { $ this -> data [ $ name ] = $ value ; } else { foreach ( $ name as $ key => $ value ) { $ this -> data [ $ key ] = $ value ; } } return $ this ; }
docstring: Set parameter value
  
  @param string|array $name The parameter name or A key-value array
  @param mixed $value The parameter value
  @return $this
docstring_tokens: Set parameter value