Total Complexity | 3 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | class OrderNotificationFactory implements OrderNotificationFactoryInterface |
||
11 | { |
||
12 | |||
13 | /** |
||
14 | * @return \SprykerEco\Zed\Amazonpay\Business\Payment\Handler\Transaction\AmazonpayTransactionInterface |
||
15 | */ |
||
16 | public function createOrderAuthFailedTransaction() |
||
17 | { |
||
18 | return new OrderAuthFailedNotifyTransaction( |
||
19 | $this->createFailedAuthNotificationSender(), |
||
20 | $this->createOrderMessageFactory() |
||
21 | ); |
||
22 | } |
||
23 | |||
24 | /** |
||
25 | * @return \SprykerEco\Zed\Amazonpay\Business\Payment\Handler\Transaction\Notification\OrderNotificationSenderInterface |
||
26 | */ |
||
27 | protected function createFailedAuthNotificationSender() |
||
28 | { |
||
29 | return new OrderFailedAuthNotificationSender(); |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * @return \SprykerEco\Zed\Amazonpay\Business\Payment\Handler\Transaction\Notification\OrderMessageFactoryInterface |
||
34 | */ |
||
35 | protected function createOrderMessageFactory() |
||
38 | } |
||
39 | |||
40 | } |
||
41 |