-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathSplEnumUnit.php
More file actions
38 lines (33 loc) · 743 Bytes
/
SplEnumUnit.php
File metadata and controls
38 lines (33 loc) · 743 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
/**
* Part of SplTypes package.
*
* (c) Adrien Loyant <donald_duck@team-df.org>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Ducks\Component\SplTypes;
/**
* SplEnumBacked gives the ability to emulate and create backed enumeration objects natively in PHP.
*
* @template T
* @extends SplEnum<T>
*
* @psalm-api
*/
abstract class SplEnumUnit extends SplEnum implements
SplEnumSingletonable,
SplUnitEnum
{
use SplUnitEnumTrait;
use SplEnumUnitTrait;
/**
* {@inheritdoc}
*/
protected function __construct()
{
// Cannot instantiate enum static::class
}
}