ImportRunException::getImportRun()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Mathielen\ImportEngine\Exception;
4
5
use Mathielen\ImportEngine\ValueObject\ImportRun;
6
7
class ImportRunException extends ImportException
8
{
9
    /**
10
     * @var ImportRun
11
     */
12
    private $importRun;
13
14
    public function __construct($message, ImportRun $importRun, \Exception $previous = null)
15
    {
16
        parent::__construct($message."\n".print_r($importRun, true), 0, $previous);
17
        $this->importRun = $importRun;
18
    }
19
20
    /**
21
     * @return ImportRun
22
     */
23
    public function getImportRun()
24
    {
25
        return $this->importRun;
26
    }
27
}
28