MultiArrayNbMaxRowsException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 6
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 9
rs 10
1
<?php
2
3
namespace Smart\EtlBundle\Exception\Utils\ArrayUtils;
4
5
use Symfony\Component\HttpFoundation\Response;
6
7
/**
8
 * @author Mathieu Ducrot <[email protected]>
9
 */
10
class MultiArrayNbMaxRowsException extends \Exception
11
{
12
    /** @var int maximum number of rows allowed */
13
    public $nbMaxRows;
14
15
    /** @var int current number of rows */
16
    public $nbRows;
17
18
    public function __construct($nbMaxRows, $nbRows)
19
    {
20
        $this->nbMaxRows = $nbMaxRows;
21
        $this->nbRows = $nbRows;
22
23
        parent::__construct(
24
            'array_utils.multi_array_nb_max_rows_error',
25
            Response::HTTP_INTERNAL_SERVER_ERROR,
26
            null
27
        );
28
    }
29
}
30