MultiArrayNbMaxRowsException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

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

1 Method

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