Example #1
0
 public function parse($query, $parameters = array())
 {
     if (strpos($query, '?') !== false && strpos($query, ':') !== false) {
         throw new \InvalidArgumentException('Cannot mixed named and regular placeholders.');
     }
     $this->_lexer->reset();
     $this->_lexer->setInput($query);
     $query = $this->QueryLanguage($parameters);
     return $query;
 }