Completed
Pull Request — master (#124)
by
unknown
29:37
created

ARBGetSubscriptionResponse   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 32
ccs 3
cts 3
cp 1
rs 10
c 1
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getSubscription() 0 4 1
A setSubscription() 0 5 1
1
<?php
2
3
namespace net\authorize\api\contract\v1;
4
5
/**
6
 * Class representing ARBGetSubscriptionResponse
7
 */
8
class ARBGetSubscriptionResponse extends ANetApiResponseType
9
{
10
11
    /**
12
     * @property \net\authorize\api\contract\v1\ARBSubscriptionMaskedType $subscription
13
     */
14
    private $subscription = null;
15
16
    /**
17
     * Gets as subscription
18
     *
19
     * @return \net\authorize\api\contract\v1\ARBSubscriptionMaskedType
20
     */
21
    public function getSubscription()
22
    {
23
        return $this->subscription;
24
    }
25
26
    /**
27
     * Sets a new subscription
28
     *
29
     * @param \net\authorize\api\contract\v1\ARBSubscriptionMaskedType $subscription
30
     * @return self
31
     */
32 1
    public function setSubscription(\net\authorize\api\contract\v1\ARBSubscriptionMaskedType $subscription)
33
    {
34 1
        $this->subscription = $subscription;
35 1
        return $this;
36
    }
37
38
39
}
40
41