Merge pull request #17722 from eileenmcnaughton/up
[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 * $Id$
18 *
19 */
20
21
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 }