| Total Complexity | 3 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class TransactionException extends Exception |
||
| 10 | { |
||
| 11 | private $title; |
||
| 12 | private $alertType; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param string $message |
||
| 16 | * @param string $title |
||
| 17 | * @param string $alertType |
||
| 18 | * @param int $code |
||
| 19 | * @param null|Exception $previous |
||
| 20 | */ |
||
| 21 | 1 | public function __construct($message, $title = "Error occured during transaction", $alertType = "alert-error", $code = 0, Exception $previous = null) |
|
| 22 | { |
||
| 23 | 1 | $this->title = $title; |
|
| 24 | 1 | $this->alertType = $alertType; |
|
| 25 | 1 | parent::__construct($message, $code, $previous); |
|
| 26 | 1 | } |
|
| 27 | |||
| 28 | 1 | public function getTitle() |
|
| 31 | } |
||
| 32 | |||
| 33 | 1 | public function getAlertType() |
|
| 38 |