ServerCompletePurchaseResponse::getSessionDebug()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 3
c 1
b 0
f 1
nc 1
nop 0
dl 0
loc 5
ccs 0
cts 2
cp 0
crap 2
rs 10
1
<?php
2
3
namespace ByTIC\Payments\Mobilpay\Message;
4
5
use ByTIC\Omnipay\Mobilpay\Message\ServerCompletePurchaseResponse as AbstractServerCompletePurchaseResponse;
6
use ByTIC\Payments\Gateways\Providers\AbstractGateway\Message\Traits\CompletePurchaseResponseTrait;
7
8
/**
9
 * Class ServerCompletePurchaseResponse
10
 * @package ByTIC\Payments\Mobilpay\Message
11
 */
12
class ServerCompletePurchaseResponse extends AbstractServerCompletePurchaseResponse
13
{
14
    use CompletePurchaseResponseTrait;
15
16
    /**
17
     * @return []
0 ignored issues
show
Documentation Bug introduced by
The doc comment [] at position 0 could not be parsed: Unknown type name '[' at position 0 in [].
Loading history...
18
     */
19
    public function getSessionDebug(): array
20
    {
21
        $notification = $this->getMobilpayNotify();
22
        return [
23
            'notify' => $notification
24
        ];
25
    }
26
27
    /** @noinspection PhpMissingParentCallCommonInspection
28
     * @return bool
29
     */
30
    protected function canProcessModel()
31
    {
32
        return true;
33
    }
34
}
35