| Total Complexity | 5 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | final class TransactionResult |
||
| 12 | { |
||
| 13 | private $success; |
||
| 14 | private $transaction_id; |
||
| 15 | private $error_message; |
||
| 16 | private $code; |
||
| 17 | |||
| 18 | public function __construct($success, $transaction_id = null, $error_message = null, $code = null) |
||
| 19 | { |
||
| 20 | $this->success = $success; |
||
| 21 | $this->transaction_id = $transaction_id; |
||
| 22 | $this->error_message = $error_message; |
||
| 23 | $this->code = $code; |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @return bool |
||
| 28 | */ |
||
| 29 | public function getSuccess() |
||
| 30 | { |
||
| 31 | return $this->success; |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @return string |
||
| 36 | */ |
||
| 37 | public function getTransactionId() |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @return string |
||
| 44 | */ |
||
| 45 | public function getErrorMessage() |
||
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @return string |
||
| 52 | */ |
||
| 53 | public function getCode() |
||
| 56 | } |
||
| 57 | } |