Completed
Push — master ( 4ca583...a67af2 )
by Song
02:43
created

Checkbox::display()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 8
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Encore\Admin\Grid\Selectable;
4
5
use Encore\Admin\Grid\Displayers\AbstractDisplayer;
6
7
class Checkbox extends AbstractDisplayer
8
{
9
    public function display($key = '')
10
    {
11
        $value = $this->getAttribute($key);
12
13
        return <<<EOT
14
<input type="checkbox" name="item" class="select" value="{$value}"/>
15
EOT;
16
    }
17
}
18