Response   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 134
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 60%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 8
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 134
ccs 12
cts 20
cp 0.6
rs 10

8 Methods

Rating   Name   Duplication   Size   Complexity  
A getCustomerId() 0 4 1
A setCustomerId() 0 6 1
A getHash() 0 4 1
A setHash() 0 6 1
A getChangeDataUrl() 0 4 1
A setChangeDataUrl() 0 6 1
A getDashboardUrl() 0 4 1
A setDashboardUrl() 0 6 1
1
<?php
2
3
namespace Speicher210\Fastbill\Api\Service\Customer\Create;
4
5
use JMS\Serializer\Annotation as JMS;
6
use Speicher210\Fastbill\Api\AbstractResponse;
7
8
/**
9
 * Response when getting the customers.
10
 */
11
class Response extends AbstractResponse
12
{
13
    /**
14
     * The customers ID.
15
     *
16
     * @var integer
17
     *
18
     * @JMS\Type("integer")
19
     * @JMS\SerializedName("CUSTOMER_ID")
20
     */
21
    protected $customerId;
22
23
    /**
24
     * Hash.
25
     *
26
     * @var string
27
     *
28
     * @JMS\Type("string")
29
     * @JMS\SerializedName("HASH")
30
     */
31
    protected $hash;
32
33
    /**
34
     * URL for changing Master data and invoice data.
35
     *
36
     * @var string
37
     *
38
     * @JMS\Type("string")
39
     * @JMS\SerializedName("CHANGEDATA_URL")
40
     */
41
    protected $changeDataUrl;
42
43
    /**
44
     * URL leading to Dashboard.
45
     *
46
     * @var string
47
     *
48
     * @JMS\Type("string")
49
     * @JMS\SerializedName("DASHBOARD_URL")
50
     */
51
    protected $dashboardUrl;
52
53
    /**
54
     * Get the customers ID.
55
     *
56
     * @return integer
57
     */
58
    public function getCustomerId()
59
    {
60
        return $this->customerId;
61
    }
62
63
    /**
64
     * Set the customer ID.
65
     *
66
     * @param integer $customerId The ID.
67
     * @return Response
68
     */
69 3
    public function setCustomerId($customerId)
70
    {
71 3
        $this->customerId = $customerId;
72
73 3
        return $this;
74
    }
75
76
    /**
77
     * Get the hash.
78
     *
79
     * @return string
80
     */
81
    public function getHash()
82
    {
83
        return $this->hash;
84
    }
85
86
    /**
87
     * Set the has of the customer.
88
     *
89
     * @param string $hash The hash.
90
     * @return Response
91
     */
92 3
    public function setHash($hash)
93
    {
94 3
        $this->hash = $hash;
95
96 3
        return $this;
97
    }
98
99
    /**
100
     * Get the change data URL.
101
     *
102
     * @return string
103
     */
104
    public function getChangeDataUrl()
105
    {
106
        return $this->changeDataUrl;
107
    }
108
109
    /**
110
     * Set the change data URL.
111
     *
112
     * @param string $changeDataUrl The URL.
113
     * @return Response
114
     */
115 3
    public function setChangeDataUrl($changeDataUrl)
116
    {
117 3
        $this->changeDataUrl = $changeDataUrl;
118
119 3
        return $this;
120
    }
121
122
    /**
123
     * Get the dashboard URL.
124
     *
125
     * @return string
126
     */
127
    public function getDashboardUrl()
128
    {
129
        return $this->dashboardUrl;
130
    }
131
132
    /**
133
     * Set the dashboard URL.
134
     *
135
     * @param string $dashboardUrl The URL.
136
     * @return Response
137
     */
138 3
    public function setDashboardUrl($dashboardUrl)
139
    {
140 3
        $this->dashboardUrl = $dashboardUrl;
141
142 3
        return $this;
143
    }
144
}
145