public function addData($key, $value)
    {
        if (isset($this->data[$key])) {
            $this->data[$key] = array_merge_recursive(
                $this->data[$key],
                $value
            );
        } else {
            $this->setData($key, $value);
        }
    }
public function addData($key, $value)
    {
        if (isset($this->data[$key])) {
            $this->data[$key] = array_merge_recursive(
                $this->data[$key],
                $value
            );
        } else {
            $this->setData($key, $value);
        }
    }
public function addData ( $ key , $ value ) { if ( isset ( $ this -> data [ $ key ] ) ) { $ this -> data [ $ key ] = array_merge_recursive ( $ this -> data [ $ key ] , $ value ) ; } else { $ this -> setData ( $ key , $ value ) ; } }
Stores the response data in a key-value fashion, adding the data to the
existing set.

@param string $key   the key under which the data is stored.
@param mixed  $value the data.
Stores the response data in a key - value fashion adding the data to the existing set .