Total Complexity | 4 |
Total Lines | 53 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
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() |
|
41 | } |
||
42 | |||
43 | /** |
||
44 | * @return string |
||
45 | */ |
||
46 | 6 | public function getIdentifier() |
|
49 | } |
||
50 | |||
51 | /** |
||
52 | * @return null|string |
||
53 | */ |
||
54 | 4 | public function getSqlJoinCode() |
|
57 | } |
||
58 | } |
||
59 |