HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux wordpress-ubuntu-s-2vcpu-4gb-fra1-01 5.4.0-169-generic #187-Ubuntu SMP Thu Nov 23 14:52:28 UTC 2023 x86_64
User: root (0)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/shoetique/wp-content/plugins/googleanalytics/lib/class-ga-lib-api-response.php
<?php
/**
 * API Response library.
 *
 * @package GoogleAnalytics
 */

/**
 * API Response Library response.
 */
class Ga_Lib_Api_Response {

	/**
	 * Emtpy response.
	 *
	 * @var string[]
	 */
	public static $empty_response = array( '', '' );

	/**
	 * Header.
	 *
	 * @var mixed
	 */
	private $header;

	/**
	 * Body.
	 *
	 * @var mixed
	 */
	private $body;

	/**
	 * Data.
	 *
	 * @var mixed
	 */
	private $data;

	/**
	 * Constructor.
	 *
	 * @param array|null $raw_response Raw response array.
	 */
	public function __construct( $raw_response = null ) {
		if ( false === empty( $raw_response ) ) {
			$this->set_header( $raw_response[0] );
			$this->set_body( $raw_response[1] );
			$this->set_data( json_decode( $raw_response[1], true ) );
		}
	}

	/**
	 * Set header.
	 *
	 * @param mixed $header Header.
	 *
	 * @return void
	 */
	public function set_header( $header ) {
		$this->header = $header;
	}

	/**
	 * Get header.
	 *
	 * @return mixed
	 */
	public function get_header() {
		return $this->header;
	}

	/**
	 * Set body.
	 *
	 * @param mixed $body Body.
	 *
	 * @return void
	 */
	public function set_body( $body ) {
		$this->body = $body;
	}

	/**
	 * Get body.
	 *
	 * @return mixed
	 */
	public function get_body() {
		return $this->body;
	}

	/**
	 * Set data.
	 *
	 * @param mixed $data Data.
	 *
	 * @return void
	 */
	public function set_data( $data ) {
		$this->data = $data;
	}

	/**
	 * Get data.
	 *
	 * @return mixed
	 */
	public function get_data() {
		return $this->data;
	}
}