ImportRunningException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 4
crap 2
1
<?php
2
3
namespace TreeHouse\IoBundle\Import\Exception;
4
5
use TreeHouse\IoBundle\Entity\Import;
6
7
class ImportRunningException extends \RuntimeException
8
{
9
    /**
10
     * @var Import
11
     */
12
    protected $import;
13
14
    /**
15
     * @param Import     $import
16
     * @param string     $message
17
     * @param int        $code
18
     * @param \Exception $previous
19
     */
20
    public function __construct(Import $import, $message = null, $code = 0, \Exception $previous = null)
21
    {
22
        parent::__construct($message, $code, $previous);
23
24
        $this->import = $import;
25
    }
26
}
27