src/Jedrzej/Searchable/SearchableTrait.php
protected function buildConstraints($values)
    {
        if (is_array($values)) {
            $constraints = [];
            foreach ($values as $value) {
                $constraints[] = Constraint::make($value);
            }
            return $constraints;
        } else {
            return Constraint::make($values);
        }
    }
protected function buildConstraints($values)
    {
        if (is_array($values)) {
            $constraints = [];
            foreach ($values as $value) {
                $constraints[] = Constraint::make($value);
            }
            return $constraints;
        } else {
            return Constraint::make($values);
        }
    }
protected function buildConstraints ( $ values ) { if ( is_array ( $ values ) ) { $ constraints = [ ] ; foreach ( $ values as $ value ) { $ constraints [ ] = Constraint :: make ( $ value ) ; } return $ constraints ; } else { return Constraint :: make ( $ values ) ; } }
Build Constraint objects from given filter values

@param string []|string

@return Constraint[]|Constraint
Build Constraint objects from given filter values