Trustly/Data/jsonrpcnotificationresponse.php
public function setData($name, $value) {
		if(!isset($this->payload['result'])) {
			$this->payload['result'] = array();
		}
		if(!isset($this->payload['result']['data'])) {
			$this->payload['result']['data'] = array($name => $value);
		} else {
			$this->payload['result']['data'][$name] = $value;
		}
		return $value;
	}
public function setData($name, $value) {
		if(!isset($this->payload['result'])) {
			$this->payload['result'] = array();
		}
		if(!isset($this->payload['result']['data'])) {
			$this->payload['result']['data'] = array($name => $value);
		} else {
			$this->payload['result']['data'][$name] = $value;
		}
		return $value;
	}
public function setData ( $ name , $ value ) { if ( ! isset ( $ this -> payload [ 'result' ] ) ) { $ this -> payload [ 'result' ] = array ( ) ; } if ( ! isset ( $ this -> payload [ 'result' ] [ 'data' ] ) ) { $ this -> payload [ 'result' ] [ 'data' ] = array ( $ name => $ value ) ; } else { $ this -> payload [ 'result' ] [ 'data' ] [ $ name ] = $ value ; } return $ value ; }
Set a parameter in the result->data section of the notification
response.

@param string $name The name of the parameter to set

@param mixed $value The value of the parameter

@return mixed $value
Set a parameter in the result - > data section of the notification response .