Merge pull request #15825 from seamuslee001/dev_core_183_logging
[civicrm-core.git] / CRM / Contribute / StateMachine / Contribution.php
1 <?php
2 /*
3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
5 | |
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
9 +--------------------------------------------------------------------+
10 */
11
12 /**
13 *
14 * @package CRM
15 * @copyright CiviCRM LLC https://civicrm.org/licensing
16 */
17
18 /**
19 * State machine for managing different states of the Import process.
20 *
21 */
22 class CRM_Contribute_StateMachine_Contribution extends CRM_Core_StateMachine {
23
24 /**
25 * Class constructor.
26 *
27 * @param CRM_Core_Controller $controller
28 * @param \const|int $action
29 *
30 * @return CRM_Contribute_StateMachine_Contribution
31 */
32 public function __construct($controller, $action = CRM_Core_Action::NONE) {
33 parent::__construct($controller, $action);
34
35 $this->_pages = [
36 'CRM_Contribute_Form_Contribution_Main' => NULL,
37 'CRM_Contribute_Form_Contribution_Confirm' => NULL,
38 'CRM_Contribute_Form_Contribution_ThankYou' => NULL,
39 ];
40
41 $this->addSequentialPages($this->_pages, $action);
42 }
43
44 }