Merge pull request #16736 from ixiam/dev_report_issue#27
[civicrm-core.git] / Civi / Api4 / Event / SchemaMapBuildEvent.php
1 <?php
2
3 /*
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC. All rights reserved. |
6 | |
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 |
10 +--------------------------------------------------------------------+
11 */
12
13 /**
14 *
15 * @package CRM
16 * @copyright CiviCRM LLC https://civicrm.org/licensing
17 */
18
19
20 namespace Civi\Api4\Event;
21
22 use Civi\Api4\Service\Schema\SchemaMap;
23 use Symfony\Component\EventDispatcher\Event as BaseEvent;
24
25 class SchemaMapBuildEvent extends BaseEvent {
26 /**
27 * @var \Civi\Api4\Service\Schema\SchemaMap
28 */
29 protected $schemaMap;
30
31 /**
32 * @param \Civi\Api4\Service\Schema\SchemaMap $schemaMap
33 */
34 public function __construct(SchemaMap $schemaMap) {
35 $this->schemaMap = $schemaMap;
36 }
37
38 /**
39 * @return \Civi\Api4\Service\Schema\SchemaMap
40 */
41 public function getSchemaMap() {
42 return $this->schemaMap;
43 }
44
45 /**
46 * @param \Civi\Api4\Service\Schema\SchemaMap $schemaMap
47 *
48 * @return $this
49 */
50 public function setSchemaMap($schemaMap) {
51 $this->schemaMap = $schemaMap;
52
53 return $this;
54 }
55
56 }