Button::setTooltip()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
/**
3
 * ExtForms - Button.php
4
 *
5
 * Initial version by: MisterX
6
 * Initial version created on: 31.07.2015
7
 */
8
9
namespace Ext\Button;
10
11
12
use Ext\Component;
13
14
class Button extends Component
15
{
16
	
17
	public function setText($text){
18
		return $this->setProperty('text',$text);
19
	}
20
	
21
	public function getText(){
22
		return $this->getProperty('text');
23
	}
24
	
25
	public function setToggleGroup($toggleGroup){
26
		return $this->setProperty('toggleGroup',$toggleGroup);
27
	}
28
29
	public function getToggleGroup(){
30
		return $this->getProperty('toggleGroup');
31
	}
32
	
33
	public function setEnableToggle($enableToggle){
34
		return $this->setProperty('enableToggle',$enableToggle);
35
	}
36
	
37
	public function getEnableToggle(){
38
		return $this->getProperty('enableToggle');
39
	}
40
41
	public function setPressed($pressed){
42
		return $this->setProperty('pressed',$pressed);
43
	}
44
45
	public function getPressed(){
46
		return $this->getProperty('pressed');
47
	}
48
	
49
	public function setIcon($icon){
50
		return $this->setProperty('icon',$icon);
51
	}
52
	
53
	public function getIcon(){
54
		return $this->getProperty('icon');
55
	}
56
	
57
	public function setDisabled($disabled){
58
		return $this->setProperty('disabled',$disabled);
59
	}
60
	
61
	public function getDisabled(){
62
		return $this->getProperty('disabled');
63
	}
64
65
	/**
66
	 * The size of the Button.
67
	 * @param string $scale - small,medium,large
68
	 * @return $this
69
	 */
70
	public function setScale($scale){
71
		return $this->setProperty('scale',$scale);
72
	}
73
74
	public function getScale(){
75
		return $this->getProperty('scale');
76
	}
77
78
	public function setTooltip($tooltip){
79
		return $this->setProperty('tooltip',$tooltip);
80
	}
81
82
	public function getTooltip(){
83
		return $this->getProperty('tooltip');
84
	}
85
86
87
88
	
89
}