APIv4 - Deprecate unused event
authorcolemanw <coleman@civicrm.org>
Fri, 16 Jun 2023 00:54:02 +0000 (20:54 -0400)
committercolemanw <coleman@civicrm.org>
Fri, 16 Jun 2023 00:54:02 +0000 (20:54 -0400)
Civi/Api4/Event/PostSelectQueryEvent.php

index 99038ce0da45b966563c7fb3e3a434289b39c716..5096b3af08b6222e3f59399e478c5db425fe0932 100644 (file)
 
 namespace Civi\Api4\Event;
 
-use Civi\Api4\Query\Api4SelectQuery;
 use Civi\Core\Event\GenericHookEvent;
 
+/**
+ * Unused event.
+ * Kept around because of https://lab.civicrm.org/dev/joomla/-/issues/28
+ * @see Events::POST_SELECT_QUERY
+ * @deprecated
+ */
 class PostSelectQueryEvent extends GenericHookEvent {
 
-  /**
-   * @var array
-   */
-  protected $results;
-
-  /**
-   * @var \Civi\Api4\Query\Api4SelectQuery
-   */
-  protected $query;
-
-  /**
-   * PostSelectQueryEvent constructor.
-   * @param array $results
-   * @param \Civi\Api4\Query\Api4SelectQuery $query
-   */
-  public function __construct(array $results, Api4SelectQuery $query) {
-    $this->results = $results;
-    $this->query = $query;
-  }
-
-  /**
-   * @return array
-   */
-  public function getResults() {
-    return $this->results;
-  }
-
-  /**
-   * @param array $results
-   * @return $this
-   */
-  public function setResults($results) {
-    $this->results = $results;
-
-    return $this;
-  }
-
-  /**
-   * @return \Civi\Api4\Query\Api4SelectQuery
-   */
-  public function getQuery() {
-    return $this->query;
-  }
-
-  /**
-   * @param \Civi\Api4\Query\Api4SelectQuery $query
-   * @return $this
-   */
-  public function setQuery($query) {
-    $this->query = $query;
-
-    return $this;
-  }
-
 }