src/JsonQueriable.php
protected function makeWhere($key, $condition = null, $value = null)
    {
        $current = end($this->_conditions);
        $index = key($this->_conditions);
        if (is_callable($key)) {
            $key($this);
            return $this;
        }

        array_push($current, [
            'key' => $key,
            'condition' => $condition,
            'value' => $value,
        ]);

        $this->_conditions[$index] = $current;

        return $this;
    }
protected function makeWhere($key, $condition = null, $value = null)
    {
        $current = end($this->_conditions);
        $index = key($this->_conditions);
        if (is_callable($key)) {
            $key($this);
            return $this;
        }

        array_push($current, [
            'key' => $key,
            'condition' => $condition,
            'value' => $value,
        ]);

        $this->_conditions[$index] = $current;

        return $this;
    }
protected function makeWhere ( $ key , $ condition = null , $ value = null ) { $ current = end ( $ this -> _conditions ) ; $ index = key ( $ this -> _conditions ) ; if ( is_callable ( $ key ) ) { $ key ( $ this ) ; return $ this ; } array_push ( $ current , [ 'key' => $ key , 'condition' => $ condition , 'value' => $ value , ] ) ; $ this -> _conditions [ $ index ] = $ current ; return $ this ; }
generator for AND and OR where

@param string $key
@param string $condition
@param mixed $value
@return $this
generator for AND and OR where