Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | public function __construct(int $attempts, CarbonInterval $timeout, $code = 0, \Throwable $previous = null) |
||
17 | { |
||
18 | $message = "Delivery limit of {$attempts} reached. Try after " |
||
19 | . Carbon::now()->add($timeout)->toDateTimeString(); |
||
20 | parent::__construct($message, $code, $previous); |
||
21 | |||
22 | $this->attempts = $attempts; |
||
23 | $this->timeout = $timeout; |
||
24 | } |
||
36 |