Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
UploadStatus | 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 Modules\Media\Models |
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 Modules\Media\Models; |
16 | |
17 | use phpOMS\Stdlib\Base\Enum; |
18 | |
19 | /** |
20 | * Upload status. |
21 | * |
22 | * @package Modules\Media\Models |
23 | * @license OMS License 2.0 |
24 | * @link https://jingga.app |
25 | * @since 1.0.0 |
26 | */ |
27 | abstract class UploadStatus extends Enum |
28 | { |
29 | public const OK = 0; |
30 | |
31 | public const WRONG_PARAMETERS = -1; |
32 | |
33 | public const NOTHING_UPLOADED = -2; |
34 | |
35 | public const UPLOAD_SIZE = -3; |
36 | |
37 | public const UNKNOWN_ERROR = -4; |
38 | |
39 | public const CONFIG_SIZE = -5; |
40 | |
41 | public const WRONG_EXTENSION = -6; |
42 | |
43 | public const NOT_UPLOADED = -7; |
44 | |
45 | public const NOT_MOVABLE = -8; |
46 | |
47 | public const FAILED_HASHING = -9; |
48 | |
49 | public const NOT_ENCRYPTABLE = -10; |
50 | |
51 | public const FILE_NOT_FOUND = -11; |
52 | } |