Completed
Push — develop ( 488b09...0de0ee )
by Mathias
131:05 queued 122:54
created

ExceptionJobResult::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 5
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 2
1
<?php
2
/**
3
 * YAWIK
4
 *
5
 * @filesource
6
 * @license MIT
7
 * @copyright  2013 - 2019 Cross Solution <http://cross-solution.de>
8
 */
9
  
10
/** */
11
namespace Core\Queue\Job;
12
13
/**
14
 * ${CARET}
15
 * 
16
 * @author Mathias Gelhausen <[email protected]>
17
 * @todo write test 
18
 */
19
class ExceptionJobResult extends JobResult
20
{
21
    public function __construct(\Exception $e)
22
    {
23
        parent::__construct([
0 ignored issues
show
Bug introduced by
array('message' => $e->g...tra' => $e->getTrace()) of type array<string,array|string> is incompatible with the type integer expected by parameter $result of Core\Queue\Job\JobResult::__construct(). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

23
        parent::__construct(/** @scrutinizer ignore-type */ [
Loading history...
24
            'message' => $e->getMessage(),
25
            'extra' => $e->getTrace(),
26
        ]);
27
    }
28
    
29
}
30