Total Complexity | 5 |
Total Lines | 68 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
4 | class EntityMapping implements IEntityMapping |
||
5 | { |
||
6 | /** |
||
7 | * @var TableInfo[] |
||
8 | */ |
||
9 | private $tableInfoList = []; |
||
10 | |||
11 | /** |
||
12 | * @var ColumnInfo[] |
||
13 | */ |
||
14 | private $columnInfoList = []; |
||
15 | |||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | private $entityClassName; |
||
20 | |||
21 | /** |
||
22 | * @var bool |
||
23 | */ |
||
24 | private $isVirtualEntity; |
||
25 | |||
26 | /** |
||
27 | * @param string $entityClassName |
||
28 | * @param TableInfo[] $tableInfoList |
||
29 | * @param ColumnInfo[] $columnInfoList |
||
30 | * @param bool $isVirtualEntity |
||
31 | */ |
||
32 | 6 | public function __construct($entityClassName, array $tableInfoList, array $columnInfoList, $isVirtualEntity = false) |
|
33 | { |
||
34 | 6 | $this->tableInfoList = $tableInfoList; |
|
35 | 6 | $this->columnInfoList = $columnInfoList; |
|
36 | 6 | $this->entityClassName = $entityClassName; |
|
37 | 6 | $this->isVirtualEntity = $isVirtualEntity; |
|
38 | 6 | } |
|
39 | |||
40 | /** |
||
41 | * @return string |
||
42 | */ |
||
43 | 2 | public function getEntityClassName() |
|
44 | { |
||
45 | 2 | return $this->entityClassName; |
|
46 | } |
||
47 | |||
48 | /** |
||
49 | * @return TableInfo[] |
||
50 | */ |
||
51 | 6 | public function getTables() |
|
54 | } |
||
55 | |||
56 | /** |
||
57 | * @param string $tableIdentifier |
||
58 | * @return ColumnInfo[] |
||
59 | */ |
||
60 | public function getColumnsForTable($tableIdentifier) |
||
64 | 5 | }); |
|
65 | } |
||
66 | |||
67 | /** |
||
68 | * @return bool |
||
69 | */ |
||
70 | 3 | public function isVirtualEntity() { |
|
72 | } |
||
73 | } |
||
74 |