* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0 */ declare(strict_types=1); namespace PrestaShop\Module\PsxMarketingWithGoogle\Http; class Response { /** @var int */ private $statusCode; /** @var string */ private $body; /** @var array */ private $headers; /** @var string|null */ private $error; /** * @param int $statusCode * @param string $body * @param array $headers * @param string|null $error * **/ public function __construct($statusCode, $body, $headers = [], $error = null) { $this->statusCode = $statusCode; $this->body = $body; $this->headers = $headers; $this->error = $error; } /** * @return int */ public function getStatusCode() { return $this->statusCode; } /** * @return array */ public function getHeaders() { return $this->headers; } /** * @return string */ public function getBody() { return $this->body; } /** * @return string|null */ public function getError() { return $this->error; } }