Completed
Push — master ( d9b048...a179cf )
by Claude
03:07
created

WebCaptureRequest::getData()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 3
Bugs 0 Features 0
Metric Value
c 3
b 0
f 0
dl 0
loc 7
ccs 4
cts 4
cp 1
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
crap 1
1
<?php
2
3
/*
4
 * WebMoney driver for the Omnipay PHP payment processing library
5
 *
6
 * @link      https://github.com/ck-developer/omnipay-payline
7
 * @package   omnipay-payline
8
 * @license   MIT
9
 * @copyright Copyright (c) 2016 Claude Khedhiri <[email protected]>
10
 */
11
12
namespace Omnipay\Payline\Message;
13
14
/**
15
 * Authorize Request.
16
 *
17
 * @method WebAuthorizeResponse send()
18
 */
19
class WebCaptureRequest extends WebAuthorizeRequest
20
{
21 3
    public function getData()
22
    {
23 3
        $data = parent::getData();
24 3
        $data['payment']['action'] = 101;
25
26 3
        return array_replace_recursive($this->getBaseData(), $data);
27
    }
28
29
    /**
30
     * @param \stdClass $data
31
     *
32
     * @return WebAuthorizeResponse
33
     */
34 3
    protected function createResponse($data)
35
    {
36 3
        return $this->response = new WebCaptureResponse($this, $data);
37
    }
38
}
39