| Total Complexity | 2 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class transaction_exception extends \Exception |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var array |
||
| 17 | */ |
||
| 18 | private $errors; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * transaction_exception constructor. |
||
| 22 | * |
||
| 23 | * @param array $errors An array of error messages |
||
| 24 | * @param int $code The Exception code |
||
| 25 | * @param \Throwable|null $previous The previous throwable used for the exception chaining |
||
| 26 | */ |
||
| 27 | public function __construct(array $errors = [], $code = 0, \Throwable $previous = null) |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @return array |
||
| 35 | */ |
||
| 36 | public function get_errors(): array |
||
| 41 |