Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
ExtensionType | n/a |
0 / 0 |
n/a |
0 / 0 |
0 | n/a |
0 / 0 |
1 | <?php |
2 | /** |
3 | * Jingga |
4 | * |
5 | * PHP Version 8.1 |
6 | * |
7 | * @package phpOMS\System\File |
8 | * @copyright Dennis Eichhorn |
9 | * @license OMS License 2.0 |
10 | * @version 1.0.0 |
11 | * @link https://jingga.app |
12 | */ |
13 | declare(strict_types=1); |
14 | |
15 | namespace phpOMS\System\File; |
16 | |
17 | use phpOMS\Stdlib\Base\Enum; |
18 | |
19 | /** |
20 | * Extension type enum. |
21 | * |
22 | * Defines what kind of category a file belongs to. |
23 | * |
24 | * @package phpOMS\System\File |
25 | * @license OMS License 2.0 |
26 | * @link https://jingga.app |
27 | * @since 1.0.0 |
28 | */ |
29 | abstract class ExtensionType extends Enum |
30 | { |
31 | public const UNKNOWN = 1; |
32 | |
33 | public const CODE = 2; |
34 | |
35 | public const AUDIO = 4; |
36 | |
37 | public const VIDEO = 8; |
38 | |
39 | public const TEXT = 16; |
40 | |
41 | public const SPREADSHEET = 32; |
42 | |
43 | public const PDF = 64; |
44 | |
45 | public const ARCHIVE = 128; |
46 | |
47 | public const PRESENTATION = 256; |
48 | |
49 | public const IMAGE = 512; |
50 | |
51 | public const EXECUTABLE = 1024; |
52 | |
53 | public const DIRECTORY = 2048; |
54 | |
55 | public const WORD = 4096; |
56 | |
57 | public const REFERENCE = 8192; |
58 | } |