Completed
Push — master ( 9bc3b7...a15851 )
by Harry
02:46
created

CopyFailedException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
ccs 0
cts 5
cp 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 4
crap 2
1
<?php
2
3
namespace Graze\DataFile\Modify\Exception;
4
5
use Exception;
6
use Graze\DataFile\Node\FileNodeInterface;
7
8
class CopyFailedException extends Exception
9
{
10
    public function __construct(FileNodeInterface $fromFile, $newPath, $message = '', Exception $previous = null)
11
    {
12
        $message = "Failed to copy file from: '$fromFile' to '$newPath'. " . $message;
13
14
        parent::__construct($message, 0, $previous);
15
    }
16
}
17