InvalidCompressionTypeException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 6
c 0
b 0
f 0
ccs 4
cts 4
cp 1
rs 9.4285
cc 1
eloc 3
nc 1
nop 3
crap 1
1
<?php
2
/**
3
 * This file is part of graze/data-file
4
 *
5
 * Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 *
10
 * @license https://github.com/graze/data-file/blob/master/LICENSE.md
11
 * @link    https://github.com/graze/data-file
12
 */
13
14
namespace Graze\DataFile\Modify\Exception;
15
16
use Exception;
17
18
class InvalidCompressionTypeException extends Exception
19
{
20
    /**
21
     * InvalidCompressionTypeException constructor.
22
     *
23
     * @param string         $compression
24
     * @param string         $message
25
     * @param Exception|null $previous
26
     */
27 6
    public function __construct($compression, $message = '', Exception $previous = null)
28
    {
29 6
        $message = "Unknown compression type: $compression. " . $message;
30
31 6
        parent::__construct($message, 0, $previous);
32 6
    }
33
}
34