LaravelFCM\Response\Exceptions\ServerResponseException::__construct PHP Method

__construct() public method

ServerResponseException constructor.
public __construct ( Response $response )
$response GuzzleHttp\Psr7\Response
    public function __construct(GuzzleResponse $response)
    {
        $code = $response->getStatusCode();
        $responseHeader = $response->getHeaders();
        $responseBody = $response->getBody()->getContents();
        if (array_keys($responseHeader, "Retry-After")) {
            $this->retryAfter = $responseHeader["Retry-After"];
        }
        parent::__construct($responseBody, $code);
    }
ServerResponseException