| Total Complexity | 2 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | trait ContextExceptionTrait |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * Exception context |
||
| 19 | * |
||
| 20 | * @var array |
||
| 21 | */ |
||
| 22 | protected $context = []; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Get current exception context, useful for logging |
||
| 26 | * |
||
| 27 | * @return array |
||
| 28 | */ |
||
| 29 | public function getContext(): array |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param array $context |
||
| 36 | * |
||
| 37 | * @return static |
||
| 38 | */ |
||
| 39 | public function setContext(array $context): ContextExceptionInterface |
||
| 46 |