Commit | Line | Data |
---|---|---|
19b53e5b C |
1 | <?php |
2 | ||
380f3545 TO |
3 | /* |
4 | +--------------------------------------------------------------------+ | |
41498ac5 | 5 | | Copyright CiviCRM LLC. All rights reserved. | |
380f3545 | 6 | | | |
41498ac5 TO |
7 | | This work is published under the GNU AGPLv3 license with some | |
8 | | permitted exceptions and without any warranty. For full license | | |
9 | | and copyright information, see https://civicrm.org/licensing | | |
380f3545 TO |
10 | +--------------------------------------------------------------------+ |
11 | */ | |
12 | ||
13 | /** | |
14 | * | |
15 | * @package CRM | |
ca5cec67 | 16 | * @copyright CiviCRM LLC https://civicrm.org/licensing |
380f3545 TO |
17 | * $Id$ |
18 | * | |
19 | */ | |
20 | ||
21 | ||
19b53e5b C |
22 | namespace Civi\Api4\Event; |
23 | ||
24 | use Civi\Api4\Service\Schema\SchemaMap; | |
25 | use Symfony\Component\EventDispatcher\Event as BaseEvent; | |
26 | ||
27 | class SchemaMapBuildEvent extends BaseEvent { | |
28 | /** | |
29 | * @var \Civi\Api4\Service\Schema\SchemaMap | |
30 | */ | |
31 | protected $schemaMap; | |
32 | ||
33 | /** | |
34 | * @param \Civi\Api4\Service\Schema\SchemaMap $schemaMap | |
35 | */ | |
36 | public function __construct(SchemaMap $schemaMap) { | |
37 | $this->schemaMap = $schemaMap; | |
38 | } | |
39 | ||
40 | /** | |
41 | * @return \Civi\Api4\Service\Schema\SchemaMap | |
42 | */ | |
43 | public function getSchemaMap() { | |
44 | return $this->schemaMap; | |
45 | } | |
46 | ||
47 | /** | |
48 | * @param \Civi\Api4\Service\Schema\SchemaMap $schemaMap | |
49 | * | |
50 | * @return $this | |
51 | */ | |
52 | public function setSchemaMap($schemaMap) { | |
53 | $this->schemaMap = $schemaMap; | |
54 | ||
55 | return $this; | |
56 | } | |
57 | ||
58 | } |