Total Complexity | 2 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | final class TimersException extends RuntimeException |
||
21 | { |
||
22 | const TIMER_START_MSG = 'An error occurred while attempting to start the timer'; |
||
23 | const TIMER_START_CODE = 32; |
||
24 | |||
25 | const TIMER_STOP_MSG = 'An error occurred while attempting to stop the timer'; |
||
26 | const TIMER_STOP_CODE = 64; |
||
27 | |||
28 | /** |
||
29 | * @param \Exception $e The timer exception |
||
30 | * |
||
31 | * @return TimersException |
||
32 | */ |
||
33 | public static function start(Exception $e) |
||
39 | ); |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * @param \Exception $e The timer exception |
||
44 | * |
||
45 | * @return TimersException |
||
46 | */ |
||
47 | public static function stop(Exception $e) |
||
56 |