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

Radio   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A display() 0 8 1
1
<?php
2
3
namespace Encore\Admin\Grid\Selectable;
4
5
use Encore\Admin\Grid\Displayers\AbstractDisplayer;
6
7
class Radio extends AbstractDisplayer
8
{
9
    public function display($key = '')
10
    {
11
        $value = $this->getAttribute($key);
12
13
        return <<<EOT
14
<input type="radio" name="item" class="select" value="{$value}"/>
15
EOT;
16
    }
17
}
18