| 1 | <?php |
||
| 16 | class PaymentResult |
||
|
|
|||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var array |
||
| 20 | */ |
||
| 21 | private $errors; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var boolean |
||
| 25 | */ |
||
| 26 | private $success; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param boolean $success |
||
| 30 | * |
||
| 31 | * @return PaymentResult |
||
| 32 | */ |
||
| 33 | public function setSuccess($success) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return boolean |
||
| 42 | */ |
||
| 43 | 7 | public function isSuccess() |
|
| 47 | |||
| 48 | /** |
||
| 49 | * @return array |
||
| 50 | */ |
||
| 51 | public function getErrors() |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @param array $errors |
||
| 58 | * |
||
| 59 | * @return PaymentResult |
||
| 60 | */ |
||
| 61 | public function setErrors(array $errors) |
||
| 67 | } |
||
| 68 |