protected function parseFilterValues(array $filters = []): array
    {
        $values = [];
        foreach ($filters as $filter) {
            if (is_array($filter)) {
                $values = array_merge($values, $this->parseFilterValues($filter['filter']));
                continue;
            }
            /** @var Filter $filter */
            $value = $filter->getParsedValue($this->getDriver());
            if (!is_array($value)) {
                $values[] = $value;
                continue;
            }
            $values = array_merge($values, $value);
        }
        return $values;
    }
protected function parseFilterValues(array $filters = []): array
    {
        $values = [];
        foreach ($filters as $filter) {
            if (is_array($filter)) {
                $values = array_merge($values, $this->parseFilterValues($filter['filter']));
                continue;
            }
            /** @var Filter $filter */
            $value = $filter->getParsedValue($this->getDriver());
            if (!is_array($value)) {
                $values[] = $value;
                continue;
            }
            $values = array_merge($values, $value);
        }
        return $values;
    }
protected function parseFilterValues ( array $ filters = [ ] ) : array { $ values = [ ] ; foreach ( $ filters as $ filter ) { if ( is_array ( $ filter ) ) { $ values = array_merge ( $ values , $ this -> parseFilterValues ( $ filter [ 'filter' ] ) ) ; continue ; } /** @var Filter $filter */ $ value = $ filter -> getParsedValue ( $ this -> getDriver ( ) ) ; if ( ! is_array ( $ value ) ) { $ values [ ] = $ value ; continue ; } $ values = array_merge ( $ values , $ value ) ; } return $ values ; }
Parse the values of the fields

@param array $filters
@return array
Parse the values of the fields