context = $report->getSource(); $this->report = $report; $this->totalResults = (int) $totalResults; } /** * @return array */ public function getQuery() { return $this->query; } /** * @param QueryBuilder $query */ public function setQuery($query): void { $this->query = $query; } /** * @return array */ public function getOptions() { return $this->options; } public function getTotalResults(): int { return $this->totalResults; } }