setCustomerProfileId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
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