HEX
Server: Apache
System: Linux sxb1plzcpnl440011.prod.sxb1.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: xfp2mtarcm67 (7705020)
PHP: 7.3.33
Disabled: NONE
Upload Files
File: //home/xfp2mtarcm67/www/wp-content/plugins/pop-up-pop-up/analyst/src/ApiResponse.php
<?php

namespace Analyst;

class ApiResponse
{
	/**
	 * Response headers
	 *
	 * @var array
	 */
	public $headers;

	/**
	 * Response body
	 *
	 * @var mixed
	 */
	public $body;

	/**
	 * Status code
	 *
	 * @var string
	 */
	public $code;

	public function __construct($body, $code, $headers)
	{
		$this->body = $body;
		$this->code = $code;
		$this->headers = $headers;
	}

	/**
	 * Whether status code is successful
	 *
	 * @return bool
	 */
	public function isSuccess()
	{
		return $this->code >= 200 && $this->code < 300;
	}
}