Boolean   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getType() 0 3 1
1
<?php
2
declare(strict_types=1);
3
/**
4
 * This file is part of the Enum package.
5
 * For the full copyright information please view the LICENCE file that was
6
 * distributed with this package.
7
 *
8
 * @copyright Simon Deeley 2017
9
 */
10
11
namespace simondeeley\Enums;
12
13
use simondeeley\Enum;
14
15
/**
16
 * Example of an enum enforcing boolean values
17
 *
18
 * @author Simon Deeley <[email protected]>
19
 * @final
20
 */
21
final class Boolean extends Enum
22
{
23
    const TRUE = true;
24
    const FALSE = false;
25
26
    /**
27
     * Returns the type of this enum
28
     *
29
     * @return string
30
     */
31 4
    final public static function getType(): string
1 ignored issue
show
Coding Style introduced by
Unnecessary FINAL modifier in FINAL class
Loading history...
32
    {
33 4
        return 'BOOLEAN';
34
    }
35
}
36