Test Failed
Push — master ( 5e8002...4695a7 )
by
unknown
06:53
created

GetTransactionListRequest::attachData()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 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 https://developer.authorize.net/api/reference/index.html#transaction-reporting-get-transaction-list
12
 */
13
class GetTransactionListRequest extends BaseApiRequest
14
{
15
    protected $batchId;
16
17
    public function __construct(
18
        Configuration $configuration,
19
        Client $client,
20
        $batchId
21
    ) {
22
        parent::__construct($configuration, $client);
23
        $this->batchId = $batchId;
24
    }
25
26
    protected function attachData(RequestInterface $request)
27
    {
28
        $request->addData('batchId', $this->batchId);
29
    }
30
}
31