Completed
Push — master ( 392d04...e48b3d )
by Pavel
02:16
created

TButtonIcon   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setIcon() 0 6 1
A getIcon() 0 4 1
1
<?php
2
3
/**
4
 * @copyright   Copyright (c) 2015 ublaboo <[email protected]>
5
 * @author      Pavel Janda <[email protected]>
6
 * @package     Ublaboo
7
 */
8
9
namespace Ublaboo\DataGrid\Traits;
10
11
use Ublaboo\DataGrid\DataGrid;
12
use Nette\Utils\Html;
13
use Ublaboo\DataGrid\Row;
14
15
trait TButtonIcon
16
{
17
18
	/**
19
	 * @var string|callable
20
	 */
21
	protected $icon;
22
23
24
	/**
25
	 * Set icon
26
	 * @param string $icon
27
	 */
28
	public function setIcon($icon)
29
	{
30
		$this->icon = $icon;
31
32
		return $this;
33
	}
34
35
36
	/**
37
	 * Get icon
38
	 * @return string
39
	 */
40
	public function getIcon()
41
	{
42
		return $this->icon;
43
	}
44
45
}
46