PaymentLogger::write()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 0
nc 1
nop 2
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * MIT License
5
 * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
6
 */
7
8
namespace SprykerEco\Client\FactFinderSdk\Business\Log;
9
10
use Psr\Log\LoggerInterface;
11
12
class PaymentLogger implements LoggerInterface
13
{
14
    /**
15
     * @param string $message
16
     * @param array $context
17
     *
18
     * @return void
19
     */
20
    public function emergency($message, array $context = [])
21
    {
22
        $this->write($message, $context);
23
    }
24
25
    /**
26
     * @param string $message
27
     * @param array $context
28
     *
29
     * @return void
30
     */
31
    public function alert($message, array $context = [])
32
    {
33
        $this->write($message, $context);
34
    }
35
36
    /**
37
     * @param string $message
38
     * @param array $context
39
     *
40
     * @return void
41
     */
42
    public function critical($message, array $context = [])
43
    {
44
        $this->write($message, $context);
45
    }
46
47
    /**
48
     * @param string $message
49
     * @param array $context
50
     *
51
     * @return void
52
     */
53
    public function error($message, array $context = [])
54
    {
55
        $this->write($message, $context);
56
    }
57
58
    /**
59
     * @param string $message
60
     * @param array $context
61
     *
62
     * @return void
63
     */
64
    public function warning($message, array $context = [])
65
    {
66
        $this->write($message, $context);
67
    }
68
69
    /**
70
     * @param string $message
71
     * @param array $context
72
     *
73
     * @return void
74
     */
75
    public function notice($message, array $context = [])
76
    {
77
        $this->write($message, $context);
78
    }
79
80
    /**
81
     * @param string $message
82
     * @param array $context
83
     *
84
     * @return void
85
     */
86
    public function info($message, array $context = [])
87
    {
88
        $this->write($message, $context);
89
    }
90
91
    /**
92
     * @param string $message
93
     * @param array $context
94
     *
95
     * @return void
96
     */
97
    public function debug($message, array $context = [])
98
    {
99
        $this->write($message, $context);
100
    }
101
102
    /**
103
     * @param mixed $level
104
     * @param string $message
105
     * @param array $context
106
     *
107
     * @return void
108
     */
109
    public function log($level, $message, array $context = [])
110
    {
111
        $this->write($message, $context);
112
    }
113
114
    /**
115
     * @param string $message
116
     * @param array $context
117
     *
118
     * @return void
119
     */
120
    protected function write($message, array $context = [])
0 ignored issues
show
Unused Code introduced by
The parameter $message is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

120
    protected function write(/** @scrutinizer ignore-unused */ $message, array $context = [])

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $context is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

120
    protected function write($message, /** @scrutinizer ignore-unused */ array $context = [])

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
121
    {
122
        // @todo @artem
123
//        $paymentLogEntity = new SpyFactFinderLog();
124
125
//        $paymentLogEntity->setFkSalesOrder($context['order_id']);
126
//        $paymentLogEntity->setMessage($message);
127
//
128
//        $paymentLogEntity->setPaymentMethod($context['payment_method']);
129
//        $paymentLogEntity->setRequestType($context['request_type']);
130
//        $paymentLogEntity->setRequestTransactionId($context['request_transaction_id']);
131
//        $paymentLogEntity->setRequestTransactionShortId($context['request_transaction_short_id']);
132
//        $paymentLogEntity->setRequestBody($context['request_body']);
133
//
134
//        $paymentLogEntity->setResponseType($context['response_type']);
135
//        $paymentLogEntity->setResponseResultCode($context['response_result_code']);
136
//        $paymentLogEntity->setResponseResultText($context['response_result_text']);
137
//        $paymentLogEntity->setResponseTransactionId($context['response_transaction_id']);
138
//        $paymentLogEntity->setResponseTransactionShortId($context['response_transaction_short_id']);
139
//        $paymentLogEntity->setResponseReasonCode($context['response_reason_code']);
140
//        $paymentLogEntity->setResponseReasonText($context['response_reason_text']);
141
//        $paymentLogEntity->setResponseStatusCode($context['response_status_code']);
142
//        $paymentLogEntity->setResponseStatusText($context['response_status_text']);
143
//        $paymentLogEntity->setResponseCustomerMessage($context['response_customer_message']);
144
145
//        $paymentLogEntity->save();
146
    }
147
}
148