ImportRunException   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 21
ccs 0
cts 9
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getImportRun() 0 4 1
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