Response::setAddonsUrl()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
ccs 3
cts 3
cp 1
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
crap 1
1
<?php
2
3
namespace Speicher210\Fastbill\Api\Service\Subscription\CreateSecureLink;
4
5
use JMS\Serializer\Annotation as JMS;
6
use Speicher210\Fastbill\Api\AbstractResponse;
7
8
/**
9
 * Response when creating secure links for a subscription.
10
 */
11
class Response extends AbstractResponse
12
{
13
    /**
14
     * The addons URL.
15
     *
16
     * @var string
17
     *
18
     * @JMS\Type("string")
19
     * @JMS\SerializedName("ADDONS_URL")
20
     */
21
    protected $addonsUrl;
22
23
    /**
24
     * The cancel URL.
25
     *
26
     * @var string
27
     *
28
     * @JMS\Type("string")
29
     * @JMS\SerializedName("CANCEL_URL")
30
     */
31
    protected $cancelUrl;
32
33
    /**
34
     * The reactivate URL.
35
     *
36
     * @var string
37
     *
38
     * @JMS\Type("string")
39
     * @JMS\SerializedName("REACTIVATE_URL")
40
     */
41
    protected $reactivateUrl;
42
43
    /**
44
     * Get the addons URL.
45
     *
46
     * @return string
47
     */
48
    public function getAddonsUrl()
49
    {
50
        return $this->addonsUrl;
51
    }
52
53
    /**
54
     * Set the addons URL.
55
     *
56
     * @param string $addonsUrl The URL.
57
     * @return Response
58
     */
59 3
    public function setAddonsUrl($addonsUrl)
60
    {
61 3
        $this->addonsUrl = $addonsUrl;
62
63 3
        return $this;
64
    }
65
66
    /**
67
     * Get the cancel URL.
68
     *
69
     * @return string
70
     */
71
    public function getCancelUrl()
72
    {
73
        return $this->cancelUrl;
74
    }
75
76
    /**
77
     * Set the cancel URL.
78
     *
79
     * @param string $cancelUrl The URL.
80
     * @return Response
81
     */
82 3
    public function setCancelUrl($cancelUrl)
83
    {
84 3
        $this->cancelUrl = $cancelUrl;
85
86 3
        return $this;
87
    }
88
89
    /**
90
     * Get the reactivate URL.
91
     *
92
     * @return string
93
     */
94
    public function getReactivateUrl()
95
    {
96
        return $this->reactivateUrl;
97
    }
98
99
    /**
100
     * Set the reactivate URL.
101
     *
102
     * @param string $reactivateUrl The URL.
103
     * @return Response
104
     */
105 3
    public function setReactivateUrl($reactivateUrl)
106
    {
107 3
        $this->reactivateUrl = $reactivateUrl;
108
109 3
        return $this;
110
    }
111
}
112