Completed
Push — master ( f7d62f...5e8002 )
by Matt
02:53
created

ARBGetSubscriptionStatusRequest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 2
dl 0
loc 18
ccs 7
cts 7
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
A attachData() 0 4 1
1
<?php
2
3
namespace CommerceGuys\AuthNet;
4
5
use GuzzleHttp\Client;
6
use CommerceGuys\AuthNet\DataTypes\Paging;
7
use CommerceGuys\AuthNet\DataTypes\Sorting;
8
use CommerceGuys\AuthNet\Request\RequestInterface;
9
10
/**
11
 * Use this method to get a subscription using Automated Recurring Billing.
12
 */
13
class ARBGetSubscriptionStatusRequest extends ARBSubscriptionRequest
14
{
15
    protected $subscriptionId;
16
17 1
    public function __construct(
18
        Configuration $configuration,
19
        Client $client,
20
        $subscriptionId
21
    ) {
22 1
        parent::__construct($configuration, $client);
23 1
        $this->subscriptionId = $subscriptionId;
24 1
    }
25
26 1
    protected function attachData(RequestInterface $request)
27
    {
28 1
        $request->addData('subscriptionId', $this->subscriptionId);
29 1
    }
30
}
31