private function parse($query) { if (is_string($query)) { $parser = new Search_Expr_Parser(); $query = $parser->parse($query); } return $query; }
private function parse($query) { if (is_string($query)) { $parser = new Search_Expr_Parser(); $query = $parser->parse($query); } elseif ($query instanceof Search_Expr_Interface) { $query = clone $query; } return $query; }