TableInfo::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 3
dl 0
loc 5
ccs 4
cts 4
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
namespace SpareParts\Pillar\Mapper\Dibi;
3
4
class TableInfo
5
{
6
	/**
7
	 * @var string
8
	 */
9
	private $name;
10
11
	/**
12
	 * @var string
13
	 */
14
	private $identifier;
15
16
	/**
17
	 * @var string|null
18
	 */
19
	private $sqlJoinCode;
20
21
	/**
22
	 * TableInfo constructor.
23
	 *
24
	 * @param string $name
25
	 * @param string $identifier
26
	 * @param string|null $sqlJoinCode
27
	 */
28 6
	public function __construct($name, $identifier, $sqlJoinCode = null)
29
	{
30 6
		$this->name = $name;
31 6
		$this->identifier = $identifier;
32 6
		$this->sqlJoinCode = $sqlJoinCode;
33 6
	}
34
35
	/**
36
	 * @return string
37
	 */
38 6
	public function getName()
39
	{
40 6
		return $this->name;
41
	}
42
43
	/**
44
	 * @return string
45
	 */
46 6
	public function getIdentifier()
47
	{
48 6
		return $this->identifier;
49
	}
50
51
	/**
52
	 * @return null|string
53
	 */
54 4
	public function getSqlJoinCode()
55
	{
56 4
		return $this->sqlJoinCode;
57
	}
58
}
59