| Total Complexity | 0 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class Rollbar |
||
| 11 | { |
||
| 12 | use Configurable; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Access Token created at rollbar.com |
||
| 16 | * @config |
||
| 17 | */ |
||
| 18 | private static string $client_token = ''; |
||
|
|
|||
| 19 | |||
| 20 | /** |
||
| 21 | * Operate/pause communications with Rollbar |
||
| 22 | * @config |
||
| 23 | */ |
||
| 24 | private static bool $show = true; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * When in the dev environment, show Rollbar in the template |
||
| 28 | * @config |
||
| 29 | */ |
||
| 30 | private static bool $show_on_dev = false; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * When in the test environment, show Rollbar in the template |
||
| 34 | * @config |
||
| 35 | */ |
||
| 36 | private static bool $show_on_test = false; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * When in the live environment, show Rollbar in the template |
||
| 40 | * @config |
||
| 41 | */ |
||
| 42 | private static bool $show_on_live = true; |
||
| 43 | } |
||
| 44 |