Completed
Push — master ( 247cd7...a032e9 )
by Dmitry
02:21
created

OmnipayRequest::getWorker()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 8
Ratio 100 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 0
Metric Value
dl 8
loc 8
ccs 0
cts 7
cp 0
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 4
nc 2
nop 0
crap 6
1
<?php
2
/**
3
 * Generalization over Omnipay and Payum
4
 *
5
 * @link      https://github.com/hiqdev/php-merchant
6
 * @package   php-merchant
7
 * @license   BSD-3-Clause
8
 * @copyright Copyright (c) 2015-2017, HiQDev (http://hiqdev.com/)
9
 */
10
11
namespace hiqdev\php\merchant\yandex;
12
13
/**
14
 * Yandex Omnipay Merchant class.
15
 */
16
class OmnipayRequest extends \hiqdev\php\merchant\OmnipayRequest
17
{
18
    public function getData()
19
    {
20
        return array_merge(parent::getData(), [
21
            'method' => 'PC', // https://money.yandex.ru/doc.xml?id=526991
22
        ]);
23
    }
24
}
25