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 +--------------------------------------------------------------------+
13 namespace Civi\Api4\Event
;
15 use Civi\Api4\Query\Api4SelectQuery
;
16 use Symfony\Component\EventDispatcher\Event
;
18 class PostSelectQueryEvent
extends Event
{
26 * @var \Civi\Api4\Query\Api4SelectQuery
31 * PostSelectQueryEvent constructor.
32 * @param array $results
33 * @param \Civi\Api4\Query\Api4SelectQuery $query
35 public function __construct(array $results, Api4SelectQuery
$query) {
36 $this->results
= $results;
37 $this->query
= $query;
43 public function getResults() {
44 return $this->results
;
48 * @param array $results
51 public function setResults($results) {
52 $this->results
= $results;
58 * @return \Civi\Api4\Query\Api4SelectQuery
60 public function getQuery() {
65 * @param \Civi\Api4\Query\Api4SelectQuery $query
68 public function setQuery($query) {
69 $this->query
= $query;