Passed
Push — master ( e9fe83...f34f5c )
by 4kizuki
06:12
created

InvalidInitializerException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 2
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Akizuki\enum\Exceptions;
4
5
use DomainException;
6
7
/**
8
 * [ Exception ] Invalid Initializer
9
 *
10
 * This exception will be thrown when invalid initializer is given to enum class.
11
 *
12
 * @author 4kizuki <[email protected]>
13
 * @copyright 2017 4kizuki. All Rights Reserved.
14
 * @package 4kizuki/php-enum
15
 * @since 1.0.0
16
 */
17
class InvalidInitializerException extends DomainException {
18
    
19 6
    public function __construct( ) {
20 6
        parent::__construct( "Invalid enum initializer given. Given initializer isn't found in enum constants." );
21 6
    }
22
    
23
}
24