/** * Applies the current prefix to the clause in $string * * @param ezcSearchQuery $q * @param string $string * * @return string */ private function processPrefix(ezcSearchQuery $q, $string) { switch ($this->prefix) { case ezcSearchQueryToken::PLUS: $string = $q->important($string); break; case ezcSearchQueryToken::MINUS: $string = $q->not($string); break; } return $string; }