Example #1
0
 /**
  * {@inheritdoc}
  */
 public function addData($name, $value)
 {
     if ($this->hasRawDatas()) {
         throw HttpAdapterException::doesNotSupportRawDatasAndDatas();
     }
     $this->datas[$name] = $this->hasData($name) ? array_merge((array) $this->datas[$name], (array) $value) : $value;
 }