/** * {@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; }