![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/zendesk/zendesk_api_client_php/src/Zendesk/API/ |
<?php namespace Zendesk\API; /** * Debug helper class */ class Debug { /** * @var mixed */ public $lastRequestBody; /** * @var mixed */ public $lastRequestHeaders; /** * @var mixed */ public $lastResponseCode; /** * @var string */ public $lastResponseHeaders; /** * @var mixed */ public $lastResponseError; /** * @return string */ public function __toString() { $lastError = $this->lastResponseError; if (! is_string($lastError)) { $lastError = json_encode($lastError); } $output = 'LastResponseCode: ' . $this->lastResponseCode . ', LastResponseError: ' . $lastError . ', LastResponseHeaders: ' . $this->lastResponseHeaders . ', LastRequestHeaders: ' . $this->lastRequestHeaders . ', LastRequestBody: ' . $this->lastRequestBody; return $output; } }