Completed
Push — master ( 481507...e81850 )
by Denis
01:52
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
class RawColumn extends BaseColumn
6
{
7
    /**
8
     * @var string
9
     */
10
    public $contentFormat = 'raw';
11
12
    /**
13
     * @return array
14
     */
15
    protected function configTests(): array
16
    {
17
        return array_merge(parent::configTests(), [
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
}