Merge pull request #15800 from eileenmcnaughton/anet_valid
[civicrm-core.git] / Civi / Api4 / Event / GetSpecEvent.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\Generic\AbstractAction;
25 use Symfony\Component\EventDispatcher\Event as BaseEvent;
26
27 class GetSpecEvent extends BaseEvent {
28 /**
29 * @var \Civi\Api4\Generic\AbstractAction
30 */
31 protected $request;
32
33 /**
34 * @param \Civi\Api4\Generic\AbstractAction $request
35 */
36 public function __construct(AbstractAction $request) {
37 $this->request = $request;
38 }
39
40 /**
41 * @return \Civi\Api4\Generic\AbstractAction
42 */
43 public function getRequest() {
44 return $this->request;
45 }
46
47 /**
48 * @param $request
49 */
50 public function setRequest(AbstractAction $request) {
51 $this->request = $request;
52 }
53
54 }