Text   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 43
Duplicated Lines 0 %

Coupling/Cohesion

Components 2
Dependencies 1

Importance

Changes 0
Metric Value
wmc 6
lcom 2
cbo 1
dl 0
loc 43
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A setAllowBlank() 0 3 1
A getAllowBlank() 0 3 1
A setGrow() 0 3 1
A getGrow() 0 3 1
A setEditable() 0 3 1
A getEditable() 0 3 1
1
<?php
2
/**
3
 * ExtForms - Text.php
4
 *
5
 * Initial version by: MisterX
6
 * Initial version created on: 31.07.2015
7
 */
8
9
namespace Ext\Form\Field;
10
11
12
class Text extends Base
13
{
14
	/**
15
	 * Specify false to validate that the value's length must be > 0
16
	 * @param $allowBlank
17
	 * @return $this
18
	 */
19
	public function setAllowBlank($allowBlank){
20
		return $this->setProperty('allowBlank',$allowBlank);
21
	}
22
23
	public function getAllowBlank(){
24
		return $this->getProperty('allowBlank');
25
	}
26
27
	/**
28
	 * true if this field should automatically grow and shrink to its content
29
	 * @param $grow
30
	 * @return $this
31
	 */
32
	public function setGrow($grow){
33
		return $this->setProperty('grow', $grow);
34
	}
35
36
	public function getGrow(){
37
		return $this->getProperty('grow');
38
	}
39
40
	/**
41
	 * false to prevent the user from typing text directly into the field
42
	 * @param $editable
43
	 * @return $this
44
	 */
45
	public function setEditable($editable){
46
		return $this->setProperty('editable',$editable);
47
	}
48
	
49
	public function getEditable(){
50
		return $this->getProperty('editable');
51
	}
52
	
53
54
}