DateRangeException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 2
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * This file is part of Zee Project.
4
 *
5
 * For the full copyright and license information, please view the LICENSE
6
 * file that was distributed with this source code.
7
 *
8
 * @see https://github.com/zee/
9
 */
10
11
namespace Zee\DateRange;
12
13
use DomainException;
14
use Throwable;
15
16
/**
17
 * Date range exception.
18
 */
19
final class DateRangeException extends DomainException implements Exception
20
{
21
    /**
22
     * @param string $message
23
     * @param Throwable|null $previous
24
     */
25 10
    public function __construct(string $message = 'Invalid data range', Throwable $previous = null)
26
    {
27 10
        parent::__construct($message, 0, $previous);
28
    }
29
}
30