Merge pull request #15841 from mattwire/participant_cleanup_removeparticipantfrominput
[civicrm-core.git] / Civi / API / Event / ResolveEvent.php
1 <?php
2 /*
3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
5 | |
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
9 +--------------------------------------------------------------------+
10 */
11
12 namespace Civi\API\Event;
13
14 /**
15 * Class ResolveEvent
16 * @package Civi\API\Event
17 */
18 class ResolveEvent extends Event {
19
20 /**
21 * @param array $apiRequest
22 * The full description of the API request.
23 * @param \Civi\API\Kernel $apiKernel
24 * The kernel which fired the event.
25 */
26 public function __construct($apiRequest, $apiKernel) {
27 parent::__construct(NULL, $apiRequest, $apiKernel);
28 }
29
30 /**
31 * @param \Civi\API\Provider\ProviderInterface $apiProvider
32 * The API provider responsible for executing the request.
33 */
34 public function setApiProvider($apiProvider) {
35 $this->apiProvider = $apiProvider;
36 }
37
38 /**
39 * @param array $apiRequest
40 * The full description of the API request.
41 */
42 public function setApiRequest($apiRequest) {
43 $this->apiRequest = $apiRequest;
44 }
45
46 }