MySqlProcessor   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 15
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A processColumnListing() 0 6 1
1
<?php
2
namespace Childish\query;
3
4
5
/**
6
 * MySqlProcessor
7
 *
8
 * @author    Pu ShaoWei <[email protected]>
9
 * @date      2017/12/7
10
 * @package   Childish
11
 * @version   1.0
12
 */
13
class MySqlProcessor extends Processor
14
{
15
    /**
16
     * Process the results of a column listing query.
17
     *
18
     * @param  array  $results
19
     * @return array
20
     */
21
    public function processColumnListing($results)
22
    {
23
        return array_map(function ($result) {
24
            return ((object) $result)->column_name;
25
        }, $results);
26
    }
27
}