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

MultiArrayHeaderConsistencyException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 13
rs 10
wmc 1

1 Method

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