WebCaptureRequest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 3
Bugs 0 Features 0
Metric Value
wmc 2
c 3
b 0
f 0
lcom 1
cbo 2
dl 0
loc 20
ccs 6
cts 6
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getData() 0 7 1
A createResponse() 0 4 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