Completed
Push — master ( 9d2442...b1f272 )
by Denis
01:49
created

RawColumn::renderValue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Woo\GridView\Columns;
4
5
use Woo\GridView\GridViewHelper;
6
7
class RawColumn extends BaseColumn
8
{
9
    /**
10
     * RawColumn constructor.
11
     * @param array $config
12
     */
13
    public function __construct(array $config)
14
    {
15
        parent::__construct($config);
16
17
        GridViewHelper::testConfig($this, [
18
            'value' => 'closure',
19
        ]);
20
    }
21
22
    /**
23
     * @inheritdoc
24
     */
25
    public function renderValue($row)
26
    {
27
        return call_user_func($this->value, $row);
28
    }
29
}