EmailColumn::render_cell()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace Icybee\Modules\Users\Block\ManageBlock;
4
5
use Icybee\Block\ManageBlock\Column;
6
use Icybee\Modules\Users\User;
7
8
/**
9
 * Representation of the `email` column.
10
 */
11
class EmailColumn extends Column
12
{
13
	/**
14
	 * @param User $record
15
	 *
16
	 * @inheritdoc
17
	 */
18
	public function render_cell($record)
19
	{
20
		$email = $record->email;
21
22
		return '<a href="mailto:' . $email . '" title="' . $this->manager->t('Send an E-mail') . '">' . $email . '</a>';
23
	}
24
}
25