| Total Complexity | 8 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class FetchResponse extends AbstractResponse |
||
| 12 | { |
||
| 13 | |||
| 14 | public function isSuccessful() |
||
| 15 | { |
||
| 16 | return ($this->getData()['PayResult'] == 3) ? true : false; |
||
| 17 | } |
||
| 18 | |||
| 19 | |||
| 20 | public function isPaid() |
||
| 21 | { |
||
| 22 | return $this->isSuccessful(); |
||
| 23 | } |
||
| 24 | |||
| 25 | |||
| 26 | public function getTransactionId() |
||
| 27 | { |
||
| 28 | return $this->getData()['FacTradeSeq']; |
||
| 29 | } |
||
| 30 | |||
| 31 | |||
| 32 | public function getAmount() |
||
| 33 | { |
||
| 34 | return $this->getData()['Amount']; |
||
| 35 | } |
||
| 36 | |||
| 37 | |||
| 38 | public function getCurrency() |
||
| 41 | } |
||
| 42 | |||
| 43 | |||
| 44 | public function getCardNumber() |
||
| 45 | { |
||
| 46 | return $this->getData()['MyCardTradeNo']; |
||
| 47 | } |
||
| 48 | |||
| 49 | |||
| 50 | public function getMessage() |
||
| 53 | } |
||
| 54 | |||
| 55 | } |