| 1 | <?php |
||
| 10 | trait ErrorCodes |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Get the log level for an error code |
||
| 14 | * |
||
| 15 | * @param int $code E_* error code |
||
| 16 | * @return string |
||
| 17 | */ |
||
| 18 | 62 | protected function getLogLevel($code = null) |
|
| 45 | |||
| 46 | /** |
||
| 47 | * Turn an error code into a string |
||
| 48 | * |
||
| 49 | * @param int $code |
||
| 50 | * @return string |
||
| 51 | */ |
||
| 52 | 50 | protected function codeToString($code) |
|
| 84 | } |