/** * @return OqlWhereClause **/ public static function where($clause) { return OqlWhereParser::create()->parse($clause); }
private function whereState() { if ($this->checkKeyword($this->tokenizer->peek(), 'where')) { $this->tokenizer->next(); $this->oqlObject->where(OqlWhereParser::create()->setTokenizer($this->tokenizer)->parse()); } return self::GROUP_BY_STATE; }