Trustly/Data/jsonrpcrequest.php
public function getData($name=NULL) {
		if(isset($name)) {
			if(isset($this->payload['params']['Data'][$name])) {
				return $this->payload['params']['Data'][$name];
			}
		} else {
			if(isset($this->payload['params']['Data'])) {
				return $this->payload['params']['Data'];
			}
		}
		return NULL;
	}
public function getData($name=NULL) {
		if(isset($name)) {
			if(isset($this->payload['params']['Data'][$name])) {
				return $this->payload['params']['Data'][$name];
			}
		} else {
			if(isset($this->payload['params']['Data'])) {
				return $this->payload['params']['Data'];
			}
		}
		return NULL;
	}
public function getData ( $ name = NULL ) { if ( isset ( $ name ) ) { if ( isset ( $ this -> payload [ 'params' ] [ 'Data' ] [ $ name ] ) ) { return $ this -> payload [ 'params' ] [ 'Data' ] [ $ name ] ; } } else { if ( isset ( $ this -> payload [ 'params' ] [ 'Data' ] ) ) { return $ this -> payload [ 'params' ] [ 'Data' ] ; } } return NULL ; }
Get the value of one parameter in the params->Data section of the
request. Or the entire Data section if no name is given.

@param string $name Name of the Data param to obtain. Leave as NULL to
get the entire structure.

@return mixed The value or the entire Data depending on $name
Get the value of one parameter in the params - > Data section of the request . Or the entire Data section if no name is given .