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

TButtonText   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 setText() 0 6 1
A getText() 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 TButtonText
16
{
17
18
	/**
19
	 * @var string
20
	 */
21
	protected $text = '';
22
23
24
	/**
25
	 * Set text
26
	 * @param string $text
27
	 */
28
	public function setText($text)
29
	{
30
		$this->text = $text;
31
32
		return $this;
33
	}
34
35
36
	/**
37
	 * Get text
38
	 * @return string
39
	 */
40
	public function getText()
41
	{
42
		return $this->text;
43
	}
44
45
}
46