InvalidSchemaException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 12 1
1
<?php
2
3
namespace Decline\TransformatBundle\Exception;
4
5
/**
6
 * Class InvalidSchemaException
7
 * @package Decline\TransformatBundle\Exception
8
 */
9
class InvalidSchemaException extends \Exception
10
{
11
    /**
12
     * InvalidSchemaException constructor.
13
     * @param string $error
14
     * @param int $fileName
15
     */
16
    public function __construct($error, $fileName)
17
    {
18
        parent::__construct(
19
            sprintf(
20
                'The following error was found whie validating the File %s: "%s"',
21
                $fileName,
22
                $error
23
            ),
24
            0,
25
            null
26
        );
27
    }
28
}