Total Complexity | 1 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class Error |
||
9 | { |
||
10 | const MEDIA_ERROR_UNKNOWN = 'MEDIA_ERROR_UNKNOWN'; |
||
11 | const MEDIA_ERROR_INVALID_REQUEST = 'MEDIA_ERROR_INVALID_REQUEST'; |
||
12 | const MEDIA_ERROR_SERVICE_UNAVAILABLE = 'MEDIA_ERROR_SERVICE_UNAVAILABLE'; |
||
13 | const MEDIA_ERROR_INTERNAL_SERVER_ERROR = 'MEDIA_ERROR_INTERNAL_SERVER_ERROR'; |
||
14 | const MEDIA_ERROR_INTERNAL_DEVICE_ERROR = 'MEDIA_ERROR_INTERNAL_DEVICE_ERROR'; |
||
15 | |||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | public $type; |
||
20 | |||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | public $message; |
||
25 | |||
26 | /** |
||
27 | * @param string $type |
||
28 | * @param string $message |
||
29 | * |
||
30 | * @return Error |
||
31 | */ |
||
32 | 5 | public static function create(string $type, string $message): self |
|
42 |