Passed
Pull Request — master (#30)
by Mathieu
02:44
created

__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 5
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 8
rs 10
1
<?php
2
3
namespace Smart\EtlBundle\Exception\Utils\ArrayUtils;
4
5
use Symfony\Component\HttpFoundation\Response;
6
7
class MultiArrayHeaderConsistencyException extends \Exception
8
{
9
    /** @var array List of keys of the MultiArray where the error occurred */
10
    public $keys;
11
12
    public function __construct(array $keys)
13
    {
14
        $this->keys = $keys;
15
16
        parent::__construct(
17
            'array_utils.multi_array_header_consistency_error',
18
            Response::HTTP_INTERNAL_SERVER_ERROR,
19
            null
20
        );
21
    }
22
}
23