| Conditions | 7 |
| Paths | 7 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | public function __construct($status) |
||
| 34 | { |
||
| 35 | $this->status = $status; |
||
| 36 | |||
| 37 | switch ($status){ |
||
| 38 | case 0: $this->message='Success'; break; |
||
| 39 | case -1: $this->message = 'Sign check failed'; break; |
||
| 40 | case -2: $this->message = 'Incorrect parameter amount'; break; |
||
| 41 | case -3: $this->message = 'Transaction already paid'; break; |
||
| 42 | case -4: $this->message = 'Transaction does not exist'; break; |
||
| 43 | case -5: $this->message = 'System Error'; break; |
||
| 44 | default: |
||
| 45 | $this->message = 'Unknown Error'; break; |
||
| 46 | } |
||
| 47 | } |
||
| 48 | |||
| 61 |