Lines Matching refs:refresh
322 * @param bool|string $refresh
324 * @phpstan-param bool|Reindex::REFRESH_* $refresh
328 public function setRefresh($refresh = true)
330 if (\is_bool($refresh)) {
331 $refresh = $refresh ? Reindex::REFRESH_TRUE : Reindex::REFRESH_FALSE;
334 return $this->setParam(Reindex::REFRESH, $refresh);
344 $refresh = $this->getParam('refresh');
346 return \in_array($refresh, [Reindex::REFRESH_TRUE, Reindex::REFRESH_FALSE], true)
347 ? Reindex::REFRESH_TRUE === $refresh
348 : $refresh;
356 return $this->hasParam('refresh');