InvalidDateException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
ccs 3
cts 3
cp 1
rs 10
cc 1
nc 1
nop 1
crap 1
1
<?php
2
3
namespace Andegna\Exception;
4
5
use Exception;
6
7
/**
8
 * Invalid Ethiopian Date Exception.
9
 */
10
class InvalidDateException extends Exception
11
{
12
    /**
13
     * InvalidDateException constructor.
14
     *
15
     * @param $message string
16
     */
17 19
    public function __construct(string $message = 'Invalid date was given')
18
    {
19 19
        parent::__construct($message);
20 19
    }
21
}
22