From ef3ec0ae641005eb7ce09b213f8fdf2a4df3f5ba Mon Sep 17 00:00:00 2001 From: colemanw Date: Thu, 15 Jun 2023 20:54:02 -0400 Subject: [PATCH] APIv4 - Deprecate unused event --- Civi/Api4/Event/PostSelectQueryEvent.php | 61 +++--------------------- 1 file changed, 6 insertions(+), 55 deletions(-) diff --git a/Civi/Api4/Event/PostSelectQueryEvent.php b/Civi/Api4/Event/PostSelectQueryEvent.php index 99038ce0da..5096b3af08 100644 --- a/Civi/Api4/Event/PostSelectQueryEvent.php +++ b/Civi/Api4/Event/PostSelectQueryEvent.php @@ -12,63 +12,14 @@ 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; - } - } -- 2.25.1