src/Execution/QueryFilter.php
public function addArgumentFilter(string $argumentName, string $columnName, ArgFilterDirective $argFilterDirective): self
    {
        if ($argFilterDirective->combinesMultipleArguments()) {
            $filterKey = "{$columnName}.{$argFilterDirective->name()}";

            $this->multiArgumentFilters[$filterKey] = $argFilterDirective;
            $this->multiArgumentFiltersArgNames[$filterKey][] = $argumentName;
        } else {
            $this->singleArgumentFilters[$argumentName] = [
                'filter' => $argFilterDirective,
                'columnName' => $columnName,
            ];
        }

        return $this;
    }
public function addArgumentFilter(string $argumentName, string $columnName, ArgFilterDirective $argFilterDirective): self
    {
        if ($argFilterDirective->combinesMultipleArguments()) {
            $filterKey = "{$columnName}.{$argFilterDirective->name()}";

            $this->multiArgumentFilters[$filterKey] = $argFilterDirective;
            $this->multiArgumentFiltersArgNames[$filterKey][] = $argumentName;
        } else {
            $this->singleArgumentFilters[$argumentName] = [
                'filter' => $argFilterDirective,
                'columnName' => $columnName,
            ];
        }

        return $this;
    }
public function addArgumentFilter ( string $ argumentName , string $ columnName , ArgFilterDirective $ argFilterDirective ) : self { if ( $ argFilterDirective -> combinesMultipleArguments ( ) ) { $ filterKey = "{$columnName}.{$argFilterDirective->name()}" ; $ this -> multiArgumentFilters [ $ filterKey ] = $ argFilterDirective ; $ this -> multiArgumentFiltersArgNames [ $ filterKey ] [ ] = $ argumentName ; } else { $ this -> singleArgumentFilters [ $ argumentName ] = [ 'filter' => $ argFilterDirective , 'columnName' => $ columnName , ] ; } return $ this ; }
Add the argument filter.

@param  string  $argumentName
@param  string  $columnName
@param  \Nuwave\Lighthouse\Support\Contracts\ArgFilterDirective  $argFilterDirective
@return $this
Add the argument filter .