Passed
Push — master ( 94f1bd...3747ce )
by Jonathan
02:16
created

GetTransactionDetailsRequest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
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 detailed information about a specific transaction.
10
 *
11
 * @link http://developer.authorize.net/api/reference/index.html#transaction-reporting-get-transaction-details
12
 */
13
class GetTransactionDetailsRequest extends BaseApiRequest
14
{
15
    protected $transId;
16
17
    public function __construct(
18
        Configuration $configuration,
19
        Client $client,
20
        $transId
21
    ) {
22
        parent::__construct($configuration, $client);
23
        $this->transId = $transId;
24
    }
25
26
    protected function attachData(RequestInterface $request)
27
    {
28
        $request->addData('transId', $this->transId);
29
    }
30
}
31