[php] Small tweaks for php generator (#7376)

This commit is contained in:
Dalibor Karlović
2020-09-27 11:42:51 +02:00
committed by GitHub
parent a5ee2e0454
commit 2c59f1dc8c
66 changed files with 866 additions and 591 deletions

View File

@@ -44,7 +44,7 @@ class ApiException extends Exception
/**
* The HTTP body of the server response either as Json or string.
*
* @var mixed
* @var \stdClass|string|null
*/
protected $responseBody;
@@ -58,17 +58,17 @@ class ApiException extends Exception
/**
* The deserialized response object
*
* @var $responseObject;
* @var \stdClass|string|null
*/
protected $responseObject;
/**
* Constructor
*
* @param string $message Error message
* @param int $code HTTP status code
* @param string[]|null $responseHeaders HTTP response header
* @param mixed $responseBody HTTP decoded body of the server response either as \stdClass or string
* @param string $message Error message
* @param int $code HTTP status code
* @param string[]|null $responseHeaders HTTP response header
* @param \stdClass|string|null $responseBody HTTP decoded body of the server response either as \stdClass or string
*/
public function __construct($message = "", $code = 0, $responseHeaders = [], $responseBody = null)
{
@@ -90,7 +90,7 @@ class ApiException extends Exception
/**
* Gets the HTTP body of the server response either as Json or string
*
* @return mixed HTTP body of the server response either as \stdClass or string
* @return \stdClass|string|null HTTP body of the server response either as \stdClass or string
*/
public function getResponseBody()
{