Response   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 66
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 60%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 66
ccs 6
cts 10
cp 0.6
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getDashboardUrl() 0 4 1
A setDashboardUrl() 0 6 1
A getAccountDataUrl() 0 4 1
A setAccountDataUrl() 0 6 1
1
<?php
2
3
namespace Speicher210\Fastbill\Api\Service\Customer\CreateSecureLink;
4
5
use JMS\Serializer\Annotation as JMS;
6
use Speicher210\Fastbill\Api\AbstractResponse;
7
8
/**
9
 * Response when creating secure links to account data and dashboard of the customer.
10
 */
11
class Response extends AbstractResponse
12
{
13
    /**
14
     * URL leading to Dashboard.
15
     *
16
     * @var string
17
     *
18
     * @JMS\Type("string")
19
     * @JMS\SerializedName("DASHBOARD_URL")
20
     */
21
    protected $dashboardUrl;
22
23
    /**
24
     * URL to the Account-Data.
25
     *
26
     * @var string
27
     *
28
     * @JMS\Type("string")
29
     * @JMS\SerializedName("ACCOUNTDATA_URL")
30
     */
31
    protected $accountDataUrl;
32
33
    /**
34
     * @return string
35
     */
36
    public function getDashboardUrl()
37
    {
38
        return $this->dashboardUrl;
39
    }
40
41
    /**
42
     * Set the dashboard URL.
43
     *
44
     * @param string $dashboardUrl The URL
45
     * @return Response
46
     */
47 3
    public function setDashboardUrl($dashboardUrl)
48
    {
49 3
        $this->dashboardUrl = $dashboardUrl;
50
51 3
        return $this;
52
    }
53
54
    /**
55
     * Get the account data URL.
56
     *
57
     * @return string
58
     */
59
    public function getAccountDataUrl()
60
    {
61
        return $this->accountDataUrl;
62
    }
63
64
    /**
65
     * Set the account data URL.
66
     *
67
     * @param string $accountDataUrl The URL
68
     * @return Response
69
     */
70 3
    public function setAccountDataUrl($accountDataUrl)
71
    {
72 3
        $this->accountDataUrl = $accountDataUrl;
73
74 3
        return $this;
75
    }
76
}
77