GetCustomerProfileRequest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 5
c 0
b 0
f 0
dl 0
loc 16
ccs 0
cts 6
cp 0
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A attachData() 0 3 1
1
<?php
2
3
namespace CommerceGuys\AuthNet;
4
5
use GuzzleHttp\Client;
6
use CommerceGuys\AuthNet\Request\RequestInterface;
7
8
/**
9
 * Retrieve an existing customer profile.
10
 *
11
 * @link http://developer.authorize.net/api/reference/index.html#customer-profiles-get-customer-profile
12
 */
13
class GetCustomerProfileRequest extends BaseApiRequest
14
{
15
    protected $customerProfileId;
16
17
    public function __construct(
18
        Configuration $configuration,
19
        Client $client,
20
        $customerProfileId
21
    ) {
22
        parent::__construct($configuration, $client);
23
        $this->customerProfileId = $customerProfileId;
24
    }
25
26
    protected function attachData(RequestInterface $request)
27
    {
28
        $request->addData('customerProfileId', $this->customerProfileId);
29
    }
30
}
31