InvalidSchemaException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 12
ccs 0
cts 6
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 8
nc 1
nop 2
crap 2
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
}