UnfilterableColumn::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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