Total Complexity | 3 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class FirstDataNotificationChecker implements FirstDataNotificationCheckerInterface |
||
13 | { |
||
14 | protected const NOTIFICATION_STATUS_APPROVED = 'APPROVED'; |
||
15 | |||
16 | /** |
||
17 | * @var \SprykerEco\Zed\FirstData\Persistence\FirstDataRepositoryInterface |
||
18 | */ |
||
19 | protected $firstDataRepository; |
||
20 | |||
21 | /** |
||
22 | * @param \SprykerEco\Zed\FirstData\Persistence\FirstDataRepositoryInterface $firstDataRepository |
||
23 | */ |
||
24 | public function __construct(FirstDataRepositoryInterface $firstDataRepository) |
||
25 | { |
||
26 | $this->firstDataRepository = $firstDataRepository; |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * @param string $transactionId |
||
31 | * |
||
32 | * @return bool |
||
33 | */ |
||
34 | public function checkIfApprovedNotificationReceived(string $transactionId): bool |
||
43 | } |
||
44 | } |
||
45 |