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

GetTransactionDetailsRequest::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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