SplEnumUnit::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 0
c 1
b 0
f 1
nc 1
nop 0
dl 0
loc 2
ccs 0
cts 1
cp 0
crap 2
rs 10
1
<?php
2
3
/**
4
 * Part of SplTypes package.
5
 *
6
 * (c) Adrien Loyant <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
declare(strict_types=1);
13
14
namespace Ducks\Component\SplTypes;
15
16
/**
17
 * SplEnumBacked gives the ability to emulate and create backed enumeration objects natively in PHP.
18
 *
19
 * @template T
20
 * @extends SplEnum<T>
21
 *
22
 * @psalm-api
23
 */
24
abstract class SplEnumUnit extends SplEnum implements
25
    SplEnumSingletonable,
26
    SplUnitEnum
27
{
28
    use SplUnitEnumTrait;
29
    use SplEnumUnitTrait;
30
31
    /**
32
     * {@inheritdoc}
33
     */
34
    protected function __construct()
35
    {
36
        // Cannot instantiate enum static::class
37
    }
38
}
39