DeleteCustomerPaymentProfileRequest   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 7
c 0
b 0
f 0
dl 0
loc 25
ccs 9
cts 9
cp 1
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A attachData() 0 4 1
A setCustomerPaymentProfileId() 0 3 1
A setCustomerProfileId() 0 3 1
1
<?php
2
3
namespace CommerceGuys\AuthNet;
4
5
use CommerceGuys\AuthNet\Request\RequestInterface;
6
7
/**
8
 * Delete a customer payment profile from an existing customer profile.
9
 *
10
 * @link http://developer.authorize.net/api/reference/index.html#customer-profiles-delete-customer-payment-profile
11
 */
12
class DeleteCustomerPaymentProfileRequest extends BaseApiRequest
13
{
14
    protected $customerProfileId;
15
    protected $customerPaymentProfileId;
16
17
    /**
18
     * @param mixed $customerProfileId
19
     */
20 1
    public function setCustomerProfileId($customerProfileId)
21
    {
22 1
        $this->customerProfileId = $customerProfileId;
23 1
    }
24
25
    /**
26
     * @param mixed $customerPaymentProfileId
27
     */
28 1
    public function setCustomerPaymentProfileId($customerPaymentProfileId)
29
    {
30 1
        $this->customerPaymentProfileId = $customerPaymentProfileId;
31 1
    }
32
33 1
    protected function attachData(RequestInterface $request)
34
    {
35 1
        $request->addData('customerProfileId', $this->customerProfileId);
36 1
        $request->addData('customerPaymentProfileId', $this->customerPaymentProfileId);
37 1
    }
38
}
39