Trustly/Data/response.php
public function getResult($name=NULL) {
		if($name === NULL) {
				# An array is always copied
			return $this->response_result;
		}

		if(is_array($this->response_result) && isset($this->response_result[$name])) {
			return $this->response_result[$name];
		}

		return NULL;
	}
public function getResult($name=NULL) {
		if($name === NULL) {
				# An array is always copied
			return $this->response_result;
		}

		if(is_array($this->response_result) && isset($this->response_result[$name])) {
			return $this->response_result[$name];
		}

		return NULL;
	}
public function getResult ( $ name = NULL ) { if ( $ name === NULL ) { # An array is always copied return $ this -> response_result ; } if ( is_array ( $ this -> response_result ) && isset ( $ this -> response_result [ $ name ] ) ) { return $ this -> response_result [ $ name ] ; } return NULL ; }
Get data from the result section of the response

@param string $name Name of the result parameter to fetch. NULL value
will return entire result section.

@return mixed The value for parameter $name or the entire result block
if no name was given
Get data from the result section of the response