Merge pull request #22928 from artfulrobot/artfulrobot-title-double-html-encoding
[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 namespace Civi\Api4\Event;
14
15 use Civi\Api4\Service\Schema\SchemaMap;
16 use Symfony\Component\EventDispatcher\Event as BaseEvent;
17
18 class SchemaMapBuildEvent extends BaseEvent {
19 /**
20 * @var \Civi\Api4\Service\Schema\SchemaMap
21 */
22 protected $schemaMap;
23
24 /**
25 * @param \Civi\Api4\Service\Schema\SchemaMap $schemaMap
26 */
27 public function __construct(SchemaMap $schemaMap) {
28 $this->schemaMap = $schemaMap;
29 }
30
31 /**
32 * @return \Civi\Api4\Service\Schema\SchemaMap
33 */
34 public function getSchemaMap() {
35 return $this->schemaMap;
36 }
37
38 /**
39 * @param \Civi\Api4\Service\Schema\SchemaMap $schemaMap
40 *
41 * @return $this
42 */
43 public function setSchemaMap($schemaMap) {
44 $this->schemaMap = $schemaMap;
45
46 return $this;
47 }
48
49 }