| Total Complexity | 3 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | class WaitingPayment extends AbstractState |
||
| 16 | { |
||
| 17 | |||
| 18 | const STATE = self::WAITING_PAYMENT; |
||
| 19 | |||
| 20 | const CODE = 1; |
||
| 21 | |||
| 22 | public function __toString() |
||
| 23 | { |
||
| 24 | return self::STATE; |
||
| 25 | } |
||
| 26 | |||
| 27 | public function pay() |
||
| 28 | { |
||
| 29 | return new PaidedState(); |
||
| 30 | } |
||
| 31 | |||
| 32 | public function cancel() |
||
| 35 | } |
||
| 36 | |||
| 37 | |||
| 38 | } |