| 1 | <?php |
||
| 19 | abstract class FormStep extends Form |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var Reservation |
||
| 23 | */ |
||
| 24 | protected $reservation; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var string the next action to go to |
||
| 28 | */ |
||
| 29 | protected $nextStep; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Get the next step |
||
| 33 | * |
||
| 34 | * @return string |
||
| 35 | */ |
||
| 36 | public function getNextStep() |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Set the next step |
||
| 43 | * should this be configurable .. ? |
||
| 44 | * |
||
| 45 | * @param $step |
||
| 46 | */ |
||
| 47 | public function setNextStep($step) |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Continue to the next step |
||
| 54 | * |
||
| 55 | * @return SS_HTTPResponse |
||
| 56 | */ |
||
| 57 | public function nextStep() |
||
| 61 | |||
| 62 | /** |
||
| 63 | * Accessor to the reservation |
||
| 64 | * |
||
| 65 | * @return Reservation |
||
| 66 | */ |
||
| 67 | public function getReservation() |
||
| 71 | } |
||
| 72 |