7698eb2df1ba6156feae78de30067e3fe624d41b
[civicrm-core.git] / Civi / Api4 / Event / SchemaMapBuildEvent.php
1 <?php
2
3 namespace Civi\Api4\Event;
4
5 use Civi\Api4\Service\Schema\SchemaMap;
6 use Symfony\Component\EventDispatcher\Event as BaseEvent;
7
8 class SchemaMapBuildEvent extends BaseEvent {
9 /**
10 * @var \Civi\Api4\Service\Schema\SchemaMap
11 */
12 protected $schemaMap;
13
14 /**
15 * @param \Civi\Api4\Service\Schema\SchemaMap $schemaMap
16 */
17 public function __construct(SchemaMap $schemaMap) {
18 $this->schemaMap = $schemaMap;
19 }
20
21 /**
22 * @return \Civi\Api4\Service\Schema\SchemaMap
23 */
24 public function getSchemaMap() {
25 return $this->schemaMap;
26 }
27
28 /**
29 * @param \Civi\Api4\Service\Schema\SchemaMap $schemaMap
30 *
31 * @return $this
32 */
33 public function setSchemaMap($schemaMap) {
34 $this->schemaMap = $schemaMap;
35
36 return $this;
37 }
38
39 }