Passed
Push — master ( 1fee9a...4a2280 )
by Hirofumi
06:11
created

__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 6
cts 6
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 2
crap 1
1
<?php
2
3
namespace Shippinno\Job\Domain\Model;
4
5
use Throwable;
6
7
class AbandonedJobMessageFailedToRequeueException extends Exception
8
{
9 1
    public function __construct(int $id, Throwable $previous = null)
10
    {
11 1
        parent::__construct(
12 1
            sprintf('Failed to requeue abandoned job message (%d).', $id),
13 1
            0,
14 1
            $previous
15
        );
16 1
    }
17
}
18