Email   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getFormattedValue() 0 6 1
1
<?php
2
3
namespace ZfcDatagrid\Column\Formatter;
4
5
use ZfcDatagrid\Column\AbstractColumn;
6
7
class Email extends AbstractFormatter
8
{
9
    /** @var array */
10
    protected $validRenderers = [
11
        'jqGrid',
12
        'bootstrapTable',
13
    ];
14
15
    /**
16
     * @param AbstractColumn $column
17
     *
18
     * @return string
19
     */
20
    public function getFormattedValue(AbstractColumn $column)
21
    {
22
        $row = $this->getRowData();
23
24
        return '<a href="mailto:'.$row[$column->getUniqueId()].'">'.$row[$column->getUniqueId()].'</a>';
25
    }
26
}
27