Merge pull request #18008 from civicrm/5.28
[civicrm-core.git] / Civi / Api4 / Event / SchemaMapBuildEvent.php
CommitLineData
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 */
18
19
19b53e5b
C
20namespace Civi\Api4\Event;
21
22use Civi\Api4\Service\Schema\SchemaMap;
23use Symfony\Component\EventDispatcher\Event as BaseEvent;
24
25class 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}