InktaleApiException   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 77
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 6
lcom 0
cbo 0
dl 0
loc 77
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A setRawResponse() 0 5 1
A getRawResponse() 0 4 1
A setErrorDetails() 0 5 1
A getErrorDetails() 0 4 1
A setErrorTitle() 0 5 1
A getErrorTitle() 0 4 1
1
<?php
2
3
namespace Inktale\Api\Exceptions;
4
5
use Exception;
6
7
class InktaleApiException extends Exception
8
{
9
    /**
10
     * @var string
11
     */
12
    private $errorTitle;
13
14
    /**
15
     * @var string
16
     */
17
    private $errorDetails;
18
19
    /**
20
     * @var string
21
     */
22
    private $rawResponse;
23
24
    /**
25
     * @param string $rawResponse
26
     * @return InktaleApiException
27
     */
28
    public function setRawResponse($rawResponse)
29
    {
30
        $this->rawResponse = $rawResponse;
31
        return $this;
32
    }
33
34
    /**
35
     * Last response raw content
36
     *
37
     * @return string
38
     */
39
    public function getRawResponse()
40
    {
41
        return $this->rawResponse;
42
    }
43
44
    /**
45
     * @param string $errorDetails
46
     * @return InktaleApiException
47
     */
48
    public function setErrorDetails($errorDetails)
49
    {
50
        $this->errorDetails = $errorDetails;
51
        return $this;
52
    }
53
54
    /**
55
     * Error details
56
     *
57
     * @return string
58
     */
59
    public function getErrorDetails()
60
    {
61
        return $this->errorDetails;
62
    }
63
64
    /**
65
     * @param string $errorTitle
66
     * @return InktaleApiException
67
     */
68
    public function setErrorTitle($errorTitle)
69
    {
70
        $this->errorTitle = $errorTitle;
71
        return $this;
72
    }
73
74
    /**
75
     * Short error title
76
     *
77
     * @return string
78
     */
79
    public function getErrorTitle()
80
    {
81
        return $this->errorTitle;
82
    }
83
}