final public function sqlQuoteIn(array $values, string $commonType = CommonTypes::TTEXT, bool $includeNull = false)
    {
        if (0 === count($values)) {
            throw new \RuntimeException('The array of values passed to DBAL::sqlQuoteIn is empty');
        }
        return ''
            . '('
            . implode(', ', array_map(function ($value) use ($commonType, $includeNull) {
                return $this->sqlQuote($value, $commonType, $includeNull);
            }, array_unique($values)))
            . ')';
    }
final public function sqlQuoteIn(array $values, string $commonType = CommonTypes::TTEXT, bool $includeNull = false)
    {
        if (0 === count($values)) {
            throw new \RuntimeException('The array of values passed to DBAL::sqlQuoteIn is empty');
        }
        return ''
            . '('
            . implode(', ', array_map(function ($value) use ($commonType, $includeNull) {
                return $this->sqlQuote($value, $commonType, $includeNull);
            }, array_unique($values)))
            . ')';
    }
final public function sqlQuoteIn ( array $ values , string $ commonType = CommonTypes :: TTEXT , bool $ includeNull = false ) { if ( 0 === count ( $ values ) ) { throw new \ RuntimeException ( 'The array of values passed to DBAL::sqlQuoteIn is empty' ) ; } return '' . '(' . implode ( ', ' , array_map ( function ( $ value ) use ( $ commonType , $ includeNull ) { return $ this -> sqlQuote ( $ value , $ commonType , $ includeNull ) ; } , array_unique ( $ values ) ) ) . ')' ; }
Parses values to secure SQL for IN operator

@param array $values
@param string $commonType
@param bool $includeNull
@return string example "(1, 3, 5)"
@throws \RuntimeException if the array of values is empty
Parses values to secure SQL for IN operator