Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
9 | public function __construct(CheckoutInterface $checkout, $code = 10, Throwable $previous = null) |
||
10 | { |
||
11 | $message = sprintf(<<<MSG |
||
12 | Something is wrong with this checkout: |
||
13 | checkout_reference: %s |
||
14 | amount: %s |
||
15 | pay_to_email: %s |
||
16 | MSG |
||
17 | , |
||
18 | $checkout->getReference(), |
||
19 | $checkout->getAmount(), |
||
20 | $checkout->getPayToEmail() |
||
21 | ); |
||
22 | parent::__construct($message, $code, $previous); |
||
23 | } |
||
25 |