website/vendor/illuminate/database/Query/Processors/MySqlProcessor.php

24 lines
390 B
PHP
Executable File

<?php namespace Illuminate\Database\Query\Processors;
class MySqlProcessor extends Processor {
/**
* Process the results of a column listing query.
*
* @param array $results
* @return array
*/
public function processColumnListing($results)
{
$mapping = function($r)
{
$r = (object) $r;
return $r->column_name;
};
return array_map($mapping, $results);
}
}