Example #1
0
 /**
  * @param string $sql
  */
 public function setSQL($sql)
 {
     if (is_string($sql)) {
         $this->scanner->setString($sql);
     }
     $this->sql = $sql;
 }
Example #2
0
 /**
  * @param $type
  * @param $value
  * @return wfWAFLexerToken
  */
 protected function createToken($type, $value)
 {
     return new wfWAFLexerToken($type, $value, $this->scanner->getLine(), $this->scanner->getColumn());
 }