DateRangeException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 9
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

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