Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 7
0.00% covered (danger)
0.00%
0 / 7
CRAP
0.00% covered (danger)
0.00%
0 / 1
ApiException
0.00% covered (danger)
0.00%
0 / 7
0.00% covered (danger)
0.00%
0 / 7
56
0.00% covered (danger)
0.00%
0 / 1
 __construct
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setResponseObject
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getResponseObject
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getErrorDetails
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setErrorDetails
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getRetryAfter
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setRetryAfter
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2/**
3 * ApiException
4 * PHP version 5.
5 *
6 * @category Class
7 *
8 * @author   Swagger Codegen team
9 *
10 * @see     https://github.com/swagger-api/swagger-codegen
11 */
12
13/**
14 * Fingerprint Pro Server API.
15 *
16 * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device.
17 *
18 * OpenAPI spec version: 3
19 * Contact: support@fingerprint.com
20 * Generated by: https://github.com/swagger-api/swagger-codegen.git
21 * Swagger Codegen version: 3.0.34
22 */
23/**
24 * NOTE: This class is auto generated by the swagger code generator program.
25 * https://github.com/swagger-api/swagger-codegen
26 * Do not edit the class manually.
27 */
28
29namespace Fingerprint\ServerAPI;
30
31use Fingerprint\ServerAPI\Model\ModelInterface;
32use Psr\Http\Message\ResponseInterface;
33
34/**
35 * ApiException Class Doc Comment.
36 *
37 * @category Class
38 *
39 * @author   Swagger Codegen team
40 *
41 * @see     https://github.com/swagger-api/swagger-codegen
42 */
43class ApiException extends \Exception
44{
45    protected ResponseInterface $responseObject;
46    protected ?ModelInterface $errorDetails = null;
47    protected ?int $retryAfter = null;
48
49    public function __construct(?string $message = '', ?int $code = 0)
50    {
51        parent::__construct($message, $code);
52    }
53
54    /**
55     * Sets the deseralized response object (during deserialization).
56     */
57    public function setResponseObject(ResponseInterface $obj): void
58    {
59        $this->responseObject = $obj;
60    }
61
62    public function getResponseObject(): ResponseInterface
63    {
64        return $this->responseObject;
65    }
66
67    public function getErrorDetails(): ModelInterface
68    {
69        return $this->errorDetails;
70    }
71
72    public function setErrorDetails(ModelInterface $errorDetails): void
73    {
74        $this->errorDetails = $errorDetails;
75    }
76
77    public function getRetryAfter(): ?int
78    {
79        return $this->retryAfter;
80    }
81
82    public function setRetryAfter(?int $retryAfter): void
83    {
84        $this->retryAfter = $retryAfter;
85    }
86}