Commit | Line | Data |
---|---|---|
4bcd4c62 TO |
1 | <?php |
2 | namespace Civi\Setup\Event; | |
3 | ||
4 | use Symfony\Component\EventDispatcher\Event; | |
5 | ||
6 | class BaseSetupEvent extends Event { | |
7 | ||
8 | /** | |
9 | * @var \Civi\Setup\Model | |
10 | */ | |
11 | protected $model; | |
12 | ||
13 | /** | |
14 | * BaseSetupEvent constructor. | |
15 | * @param \Civi\Setup\Model $model | |
16 | */ | |
17 | public function __construct(\Civi\Setup\Model $model) { | |
18 | $this->model = $model; | |
19 | } | |
20 | ||
21 | /** | |
22 | * @return \Civi\Setup\Model | |
23 | */ | |
24 | public function getModel() { | |
25 | return $this->model; | |
26 | } | |
27 | ||
28 | /** | |
29 | * @param \Civi\Setup\Model $model | |
30 | */ | |
31 | public function setModel($model) { | |
32 | $this->model = $model; | |
33 | } | |
34 | ||
35 | } |