| 1 |
<?php namespace WpFluent\QueryBuilder; |
| 2 |
|
| 3 |
class NestedCriteria extends QueryBuilderHandler |
| 4 |
{ |
| 5 |
/** |
| 6 |
* @param $key |
| 7 |
* @param null $operator |
| 8 |
* @param null $value |
| 9 |
* @param string $joiner |
| 10 |
* |
| 11 |
* @return $this |
| 12 |
*/ |
| 13 |
protected function whereHandler($key, $operator = null, $value = null, $joiner = 'AND') |
| 14 |
{ |
| 15 |
$key = $this->addTablePrefix($key); |
| 16 |
$this->statements['criteria'][] = compact('key', 'operator', 'value', 'joiner'); |
| 17 |
|
| 18 |
return $this; |
| 19 |
} |
| 20 |
} |
| 21 |
|