Merge pull request #22699 from colemanw/searchKitImportCheck
[civicrm-core.git] / CRM / Contribute / StateMachine / Contribution.php
CommitLineData
6a488035
TO
1<?php
2/*
3 +--------------------------------------------------------------------+
bc77d7c0 4 | Copyright CiviCRM LLC. All rights reserved. |
6a488035 5 | |
bc77d7c0
TO
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 |
6a488035 9 +--------------------------------------------------------------------+
d25dd0ee 10 */
6a488035
TO
11
12/**
13 *
14 * @package CRM
ca5cec67 15 * @copyright CiviCRM LLC https://civicrm.org/licensing
6a488035
TO
16 */
17
18/**
19 * State machine for managing different states of the Import process.
20 *
21 */
22class CRM_Contribute_StateMachine_Contribution extends CRM_Core_StateMachine {
23
24 /**
fe482240 25 * Class constructor.
6a488035 26 *
74ab7ba8 27 * @param CRM_Core_Controller $controller
6c8f6e67 28 * @param \const|int $action
6a488035 29 *
c490a46a 30 * @return CRM_Contribute_StateMachine_Contribution
6a488035 31 */
00be9182 32 public function __construct($controller, $action = CRM_Core_Action::NONE) {
6a488035
TO
33 parent::__construct($controller, $action);
34
be2fb01f 35 $this->_pages = [
6a488035
TO
36 'CRM_Contribute_Form_Contribution_Main' => NULL,
37 'CRM_Contribute_Form_Contribution_Confirm' => NULL,
38 'CRM_Contribute_Form_Contribution_ThankYou' => NULL,
be2fb01f 39 ];
6a488035
TO
40
41 $this->addSequentialPages($this->_pages, $action);
42 }
96025800 43
6a488035 44}