NoTransUnitsFoundException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 11
ccs 6
cts 6
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 7
nc 1
nop 1
crap 1
1
<?php
2
3
namespace Decline\TransformatBundle\Exception;
4
5
/**
6
 * Class NoTransUnitsFoundException
7
 * @package Decline\TransformatBundle\Exception
8
 */
9
class NoTransUnitsFoundException extends \Exception
10
{
11
12
    /**
13
     * NoTransUnitsFoundException constructor.
14
     * @param string $fileName
15
     */
16 1
    public function __construct($fileName)
17
    {
18 1
        parent::__construct(
19
            sprintf(
20 1
                'No trans-units could be found in "%s". Is the file empty or did you define a wrong namespace?',
21
                $fileName
22
            ),
23 1
            0,
24 1
            null
25
        );
26
    }
27
}