AddonTableColumns::handle()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 15
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
c 3
b 0
f 0
dl 0
loc 15
rs 9.4285
cc 1
eloc 6
nc 1
nop 1
1
<?php namespace Anomaly\AddonsModule\Addon\Table;
2
3
4
5
/**
6
 * Class AddonTableColumns
7
 *
8
 * @link          http://pyrocms.com/
9
 * @author        PyroCMS, Inc. <[email protected]>
10
 * @author        Ryan Thompson <[email protected]>
11
 */
12
class AddonTableColumns
13
{
14
15
    /**
16
     * Handle the command.
17
     *
18
     * @param AddonTableBuilder $builder
19
     */
20
    public function handle(AddonTableBuilder $builder)
21
    {
22
        $builder->setColumns(
23
            [
24
                [
25
                    'heading' => 'module::field.name.name',
26
                    'value'   => 'entry.title',
27
                ],
28
                [
29
                    'heading' => 'module::field.description.name',
30
                    'value'   => 'entry.description',
31
                ],
32
            ]
33
        );
34
    }
35
}
36