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