Skip to content

Commit e32a8ec

Browse files
committed
Merge remote-tracking branch 'origin/MAG-820' into v4.1.2
2 parents 49f1d25 + 70f959c commit e32a8ec

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

lib/Core/Response/SaleResponse.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
use Signifyd\Core\Response;
1818
use Signifyd\Models\Decision;
1919
use Signifyd\Models\Coverage;
20+
use Signifyd\Core\Logging;
2021

2122
class SaleResponse extends Response
2223
{
@@ -59,6 +60,11 @@ class SaleResponse extends Response
5960

6061
public $errors;
6162

63+
/**
64+
* @var Logging
65+
*/
66+
public $logger;
67+
6268
/**
6369
* The class attributes
6470
*
@@ -88,16 +94,10 @@ class SaleResponse extends Response
8894
];
8995

9096
/**
91-
* UserAccount constructor.
92-
*
93-
* @param array $data The user account data
97+
* @param Logging $logger
9498
*/
95-
public function __construct($logger)
99+
public function __construct(Logging $logger)
96100
{
97-
if (!is_object($logger) || get_class($logger) !== 'Signifyd\Core\Logging') {
98-
throw new LoggerException('Invalid logger parameter');
99-
}
100-
101101
$this->logger = $logger;
102102
}
103103

@@ -252,4 +252,4 @@ public function setTraceId($traceId)
252252
{
253253
$this->traceId = $traceId;
254254
}
255-
}
255+
}

0 commit comments

Comments
 (0)