Add KeyFilter and deprecate KeyValue object
Signed-off-by: davidarendsen <davidarendsen@hey.com>
This commit is contained in:
parent
63a5fb84ac
commit
c66b71ee57
7 changed files with 246 additions and 14 deletions
|
|
@ -4,6 +4,7 @@ namespace Arendsen\FluxQueryBuilder\Functions;
|
|||
|
||||
use Arendsen\FluxQueryBuilder\Exception\FunctionInvalidInputException;
|
||||
use Arendsen\FluxQueryBuilder\Expression\KeyValue;
|
||||
use Arendsen\FluxQueryBuilder\Expression\KeyFilter;
|
||||
|
||||
class Filter extends Base
|
||||
{
|
||||
|
|
@ -27,7 +28,7 @@ class Filter extends Base
|
|||
*/
|
||||
protected function format(): string
|
||||
{
|
||||
if ($this->filter instanceof KeyValue) {
|
||||
if ($this->filter instanceof KeyValue || $this->filter instanceof KeyFilter) {
|
||||
return $this->filter->__toString();
|
||||
} elseif (is_array($this->filter)) {
|
||||
$filterCounter = 0;
|
||||
|
|
|
|||
Loading…
Add table
editor.link_modal.header
Reference in a new issue