private function setArrayLineArrayToFilter($key, $value, $referenceTable)
    {
        $filters2 = implode(', ', array_diff($value, ['']));
        if ($filters2 != '') {
            return '(' . $referenceTable . '`' . $key . '` IN ("'
                . str_replace(',', '","', str_replace(["'", '"'], '', $filters2)) . '"))';
        }
        return '';
    }
private function setArrayLineArrayToFilter($key, $value, $referenceTable)
    {
        $filters2 = implode(', ', array_diff($value, ['']));
        if ($filters2 != '') {
            return '(' . $referenceTable . '`' . $key . '` IN ("'
                . str_replace(',', '","', str_replace(["'", '"'], '', $filters2)) . '"))';
        }
        return '';
    }
private function setArrayLineArrayToFilter ( $ key , $ value , $ referenceTable ) { $ filters2 = implode ( ', ' , array_diff ( $ value , [ '' ] ) ) ; if ( $ filters2 != '' ) { return '(' . $ referenceTable . '`' . $ key . '` IN ("' . str_replace ( ',' , '","' , str_replace ( [ "'" , '"' ] , '' , $ filters2 ) ) . '"))' ; } return '' ; }
Builds an filter string from pair of key and value, where value is array

@param string $key
@param array $value
@param string $referenceTable
@return string
Builds an filter string from pair of key and value where value is array