lib/Doctrine/DBAL/Schema/Table.php
private function filterColumns(array $columnNames)
    {
        return array_filter($this->_columns, static function ($columnName) use ($columnNames) {
            return in_array($columnName, $columnNames, true);
        }, ARRAY_FILTER_USE_KEY);
    }
private function filterColumns(array $columnNames)
    {
        return array_filter($this->_columns, static function ($columnName) use ($columnNames) {
            return in_array($columnName, $columnNames, true);
        }, ARRAY_FILTER_USE_KEY);
    }
private function filterColumns ( array $ columnNames ) { return array_filter ( $ this -> _columns , static function ( $ columnName ) use ( $ columnNames ) { return in_array ( $ columnName , $ columnNames , true ) ; } , ARRAY_FILTER_USE_KEY ) ; }
Returns only columns that have specified names

@param string[] $columnNames

@return Column[]
Returns only columns that have specified names