NoTransUnitsFoundException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 19
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 11 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
}