Merge pull request #17197 from eileenmcnaughton/act_r_test
[civicrm-core.git] / CRM / Upgrade / StateMachine.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 upgrade process.
20 */
21 class CRM_Upgrade_StateMachine extends CRM_Core_StateMachine {
22
23 /**
24 * Class constructor.
25 *
26 * @param CRM_Upgrade_Controller $controller
27 * @param array $pages
28 * @param int $action
29 *
30 * @return CRM_Upgrade_StateMachine
31 */
32 public function __construct(&$controller, &$pages, $action = CRM_Core_Action::NONE) {
33 parent::__construct($controller, $action);
34
35 $this->_pages = &$pages;
36
37 $this->addSequentialPages($this->_pages, $action);
38 }
39
40 }