oDriver = $oDriver; } /** * @param \RainLoop\Account $oAccount * @param string $sQuery * * @return array */ public function Process(\RainLoop\Account $oAccount, $sQuery) { return $this->oDriver && $this->IsActive() && 0 < \strlen($sQuery) ? $this->oDriver->Process($oAccount, $sQuery) : array(); } /** * @return bool */ public function IsActive() { return $this->oDriver instanceof \RainLoop\Providers\Suggestions\SuggestionsInterface; } }