Merge pull request #15338 from totten/master-poc-postcommit
[civicrm-core.git] / setup / src / Setup / Event / CheckAuthorizedEvent.php
1 <?php
2 namespace Civi\Setup\Event;
3
4 /**
5 * Check if the current user is authorized to perform installations.
6 *
7 * Event Name: 'civi.setup.checkAuthorized'
8 */
9 class CheckAuthorizedEvent extends BaseSetupEvent {
10
11 /**
12 * @var bool
13 */
14 private $authorized = FALSE;
15
16 /**
17 * @return bool
18 */
19 public function isAuthorized() {
20 return $this->authorized;
21 }
22
23 /**
24 * @param bool $authorized
25 */
26 public function setAuthorized($authorized) {
27 $this->authorized = $authorized;
28 }
29
30 }