TableInfo   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 53
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 10
dl 0
loc 53
ccs 11
cts 11
cp 1
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 3 1
A getIdentifier() 0 3 1
A getSqlJoinCode() 0 3 1
A __construct() 0 5 1
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