Number   A
last analyzed

Complexity

Total Complexity 10

Size/Duplication

Total Lines 51
Duplicated Lines 0 %

Coupling/Cohesion

Components 2
Dependencies 1

Importance

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

10 Methods

Rating   Name   Duplication   Size   Complexity  
A setMaxValue() 0 3 1
A getMaxValue() 0 3 1
A setMinValue() 0 3 1
A getMinValue() 0 3 1
A setAllowDecimals() 0 3 1
A getAllowDecimals() 0 3 1
A setDecimalPrecision() 0 3 1
A getDecimalPrecision() 0 3 1
A setDecimalSeparator() 0 3 1
A getDecimalSeparator() 0 3 1
1
<?php
2
/**
3
 * ExtForms - Number.php
4
 *
5
 * Initial version by: MisterX
6
 * Initial version created on: 06.08.2015
7
 */
8
9
namespace Ext\Form\Field;
10
11
12
class Number extends Text
13
{
14
15
	public function setMaxValue($maxValue){
16
		return $this->setProperty('maxValue',$maxValue);
17
	}
18
19
	public function getMaxValue(){
20
		return $this->getProperty('maxValue');
21
	}
22
23
	public function setMinValue($minValue){
24
		return $this->setProperty('minValue',$minValue);
25
	}
26
27
	public function getMinValue(){
28
		return $this->getProperty('minValue');
29
	}
30
31
	public function setAllowDecimals($allowDecimals){
32
		return $this->setProperty('allowDecimals',(bool)$allowDecimals);
33
	}
34
35
	public function getAllowDecimals(){
36
		return $this->getProperty('allowDecimals');
37
	}
38
39
	public function setDecimalPrecision($decimalPrecision){
40
		return $this->setProperty('decimalPrecision',$decimalPrecision);
41
	}
42
43
	public function getDecimalPrecision(){
44
		return $this->getProperty('decimalPrecision');
45
	}
46
47
	public function setDecimalSeparator($decimalSeparator){
48
		return $this->setProperty('decimalSeparator',$decimalSeparator);
49
	}
50
51
	public function getDecimalSeparator(){
52
		return $this->getProperty('decimalSeparator');
53
	}
54
55
56
57
58
59
60
61
62
}