4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC. All rights reserved. |
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 +--------------------------------------------------------------------+
16 * @copyright CiviCRM LLC https://civicrm.org/licensing
22 namespace Civi\Api4\Event
;
24 use Civi\Api4\Query\Api4SelectQuery
;
25 use Symfony\Component\EventDispatcher\Event
;
27 class PostSelectQueryEvent
extends Event
{
35 * @var \Civi\Api4\Query\Api4SelectQuery
40 * PostSelectQueryEvent constructor.
41 * @param array $results
42 * @param \Civi\Api4\Query\Api4SelectQuery $query
44 public function __construct(array $results, Api4SelectQuery
$query) {
45 $this->results
= $results;
46 $this->query
= $query;
52 public function getResults() {
53 return $this->results
;
57 * @param array $results
60 public function setResults($results) {
61 $this->results
= $results;
67 * @return \Civi\Api4\Query\Api4SelectQuery
69 public function getQuery() {
74 * @param \Civi\Api4\Query\Api4SelectQuery $query
77 public function setQuery($query) {
78 $this->query
= $query;