MinimumColumn::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 1
eloc 4
nc 1
nop 2
dl 0
loc 6
rs 10
c 2
b 0
f 0
1
<?php
2
3
namespace DoctrineDatatable\Exception;
4
5
/**
6
 * Class MinimumColumn.
7
 *
8
 * @author Mathieu Petrini <[email protected]>
9
 *
10
 * @codeCoverageIgnore
11
 */
12
class MinimumColumn extends \Exception
13
{
14
    /**
15
     * MinimumColumn constructor.
16
     *
17
     * @author Mathieu Petrini <[email protected]>
18
     *
19
     * @param int             $code
20
     * @param \Throwable|null $previous
21
     */
22
    public function __construct($code = 0, \Throwable $previous = null)
23
    {
24
        parent::__construct(
25
            'At least one column is mandatory to initialize a datatable',
26
            $code,
27
            $previous
28
        );
29
    }
30
}
31