| 1 | <?php |
||
| 18 | class SentrySeverity |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * Maps PHP's internal error-types into those suited to {@link Severity}. |
||
| 22 | * |
||
| 23 | * @param mixed int|string $severity The incoming level from userland code or |
||
| 24 | * PHP itself. |
||
| 25 | * @return string |
||
| 26 | */ |
||
| 27 | public static function process_severity($severity) : string |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Almost an exact replica of {@link Severity::fromError()}, except we're |
||
| 45 | * dealing with string values passed to us from upstream processes. |
||
| 46 | * |
||
| 47 | * @param string $severity An incoming severity. |
||
| 48 | * @return string |
||
| 49 | */ |
||
| 50 | public static function from_error(string $severity) : string |
||
| 81 | |||
| 82 | } |
||
| 83 |