Completed
Push — master ( a60993...c4533a )
by Andrii
02:28
created

OmnipayResponse::getFrom()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/*
4
 * Generalization over Omnipay and Payum
5
 *
6
 * @link      https://github.com/hiqdev/php-merchant
7
 * @package   php-merchant
8
 * @license   BSD-3-Clause
9
 * @copyright Copyright (c) 2015, HiQDev (http://hiqdev.com/)
10
 */
11
12
namespace hiqdev\php\merchant\webmoney;
13
14
use hiqdev\php\merchant\Helper;
15
16
/**
17
 * WebMoney Omnipay Response class.
18
 */
19
class OmnipayResponse extends \hiqdev\php\merchant\OmnipayResponse
20
{
21
    public function getTime()
22
    {
23
        return Helper::isotime($this->getVar('LMI_SYS_TRANS_DATE') . ' Europe/Moscow');
24
    }
25
26
    public function getPayer()
27
    {
28
        return $this->getVar('LMI_PAYER_PURSE') . '/' . $this->getVar('LMI_PAYER_WM');
29
    }
30
}
31