File tree 1 file changed +9
-9
lines changed
1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 17
17
use Signifyd \Core \Response ;
18
18
use Signifyd \Models \Decision ;
19
19
use Signifyd \Models \Coverage ;
20
+ use Signifyd \Core \Logging ;
20
21
21
22
class SaleResponse extends Response
22
23
{
@@ -59,6 +60,11 @@ class SaleResponse extends Response
59
60
60
61
public $ errors ;
61
62
63
+ /**
64
+ * @var Logging
65
+ */
66
+ public $ logger ;
67
+
62
68
/**
63
69
* The class attributes
64
70
*
@@ -88,16 +94,10 @@ class SaleResponse extends Response
88
94
];
89
95
90
96
/**
91
- * UserAccount constructor.
92
- *
93
- * @param array $data The user account data
97
+ * @param Logging $logger
94
98
*/
95
- public function __construct ($ logger )
99
+ public function __construct (Logging $ logger )
96
100
{
97
- if (!is_object ($ logger ) || get_class ($ logger ) !== 'Signifyd\Core\Logging ' ) {
98
- throw new LoggerException ('Invalid logger parameter ' );
99
- }
100
-
101
101
$ this ->logger = $ logger ;
102
102
}
103
103
@@ -252,4 +252,4 @@ public function setTraceId($traceId)
252
252
{
253
253
$ this ->traceId = $ traceId ;
254
254
}
255
- }
255
+ }
You can’t perform that action at this time.
0 commit comments