Completed
Pull Request — master (#121)
by
unknown
11:29
created

PhpConstant::getName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 3
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
nc 1
cc 1
eloc 2
nop 0
crap 2
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