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

TButtonText::setText()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 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