Passed
Pull Request — feature/ECO-948-renaming-and-r... (#7)
by Andrey
04:36 queued 01:50
created

IpnOrderReferenceClosedHandler   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 16
rs 10
c 1
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getOmsEventId() 0 3 1
A getStatusName() 0 3 1
1
<?php
2
3
/**
4
 * Apache OSL-2
5
 * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
6
 */
7
8
namespace SprykerEco\Zed\AmazonPay\Business\Payment\Handler\Ipn\OrderReference;
9
10
use SprykerEco\Shared\AmazonPay\AmazonPayConfig;
11
12
class IpnOrderReferenceClosedHandler extends IpnAbstractOrderReferenceHandler
13
{
14
    /**
15
     * @return string
16
     */
17
    protected function getOmsEventId()
18
    {
19
        return AmazonPayConfig::OMS_EVENT_UPDATE_AUTH_STATUS;
20
    }
21
22
    /**
23
     * @return string
24
     */
25
    protected function getStatusName()
26
    {
27
        return AmazonPayConfig::STATUS_DECLINED;
28
    }
29
}
30