Trustly/Data/jsonrpcnotificationrequest.php
public function getParams($name=NULL) {
		if(!isset($this->payload['params'])) {
			return NULL;
		}
		$params = $this->payload['params'];
		if(isset($name)) {
			if(isset($params[$name])) {
				return $params[$name];
			}
		} else {
			return $params;
		}
		return NULL;
	}
public function getParams($name=NULL) {
		if(!isset($this->payload['params'])) {
			return NULL;
		}
		$params = $this->payload['params'];
		if(isset($name)) {
			if(isset($params[$name])) {
				return $params[$name];
			}
		} else {
			return $params;
		}
		return NULL;
	}
public function getParams ( $ name = NULL ) { if ( ! isset ( $ this -> payload [ 'params' ] ) ) { return NULL ; } $ params = $ this -> payload [ 'params' ] ; if ( isset ( $ name ) ) { if ( isset ( $ params [ $ name ] ) ) { return $ params [ $ name ] ; } } else { return $ params ; } return NULL ; }
Get value from or the entire params payload.

@param string $name Name of the params parameter to obtain. Leave blank
to get the entire payload

@return mixed The value for the params parameter or the entire payload
depending on $name
Get value from or the entire params payload .