TButtonText::setText()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 0
cts 2
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
crap 2
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 1
trait TButtonText
12
{
13
14
	/**
15
	 * @var string
16
	 */
17
	protected $text = '';
18
19
20
	/**
21
	 * Set text
22
	 * @param string $text
23
	 */
24
	public function setText($text)
25
	{
26
		$this->text = $text;
27
28
		return $this;
29
	}
30
31
32
	/**
33
	 * Get text
34
	 * @return string
35
	 */
36
	public function getText()
37
	{
38
		return $this->text;
39
	}
40
}
41