Commit 3c5ad7db authored by nomack84's avatar nomack84

Added ExpressionBuilder::nolike() method

parent cb0cda22
......@@ -248,6 +248,19 @@ class ExpressionBuilder
{
return $this->comparison($x, 'LIKE', $y);
}
/**
* Creates a NOT LIKE() comparison expression with the given arguments.
*
* @param string $x Field in string format to be inspected by NOT LIKE() comparison.
* @param mixed $y Argument to be used in NOT LIKE() comparison.
*
* @return string
*/
public function notlike($x, $y)
{
return $this->comparison($x, 'NOT LIKE', $y);
}
/**
* Quotes a given input parameter.
......@@ -261,4 +274,4 @@ class ExpressionBuilder
{
return $this->connection->quote($input, $type);
}
}
\ No newline at end of file
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment