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
20 namespace Civi\Api4\Event
;
22 use Civi\Api4\Query\Api4SelectQuery
;
23 use Symfony\Component\EventDispatcher\Event
;
25 class PostSelectQueryEvent
extends Event
{
33 * @var \Civi\Api4\Query\Api4SelectQuery
38 * PostSelectQueryEvent constructor.
39 * @param array $results
40 * @param \Civi\Api4\Query\Api4SelectQuery $query
42 public function __construct(array $results, Api4SelectQuery
$query) {
43 $this->results
= $results;
44 $this->query
= $query;
50 public function getResults() {
51 return $this->results
;
55 * @param array $results
58 public function setResults($results) {
59 $this->results
= $results;
65 * @return \Civi\Api4\Query\Api4SelectQuery
67 public function getQuery() {
72 * @param \Civi\Api4\Query\Api4SelectQuery $query
75 public function setQuery($query) {
76 $this->query
= $query;