Completed
Pull Request — master (#121)
by
unknown
09:43
created

PhpConstant   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 28.57%

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 0
dl 0
loc 41
ccs 4
cts 14
cp 0.2857
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getName() 0 3 1
A setName() 0 3 1
A getValue() 0 3 1
A setValue() 0 3 1
1
<?php
2
3
4
namespace Goetas\Xsd\XsdToPhp\Php\Structure;
5
6
7
class PhpConstant {
8
	protected $name;
9
	protected $value;
10
11
	/**
12
	 * @param string $name
13
	 * @param string $value
14
	 */
15 1
	public function __construct( $name, $value ) {
16 1
		$this->name  = $name;
17 1
		$this->value = $value;
18 1
	}
19
20
	/**
21
	 * @return string
22
	 */
23
	public function getName() {
24
		return $this->name;
25
	}
26
27
	/**
28
	 * @param string $name
29
	 */
30
	public function setName( $name ) {
31
		$this->name = $name;
32
	}
33
34
	/**
35
	 * @return string
36
	 */
37
	public function getValue() {
38
		return $this->value;
39
	}
40
41
	/**
42
	 * @param string $value
43
	 */
44
	public function setValue( $value ) {
45
		$this->value = $value;
46
	}
47
}
48