Total Complexity | 2 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
6 | class UnionDataSource implements DataSourceInterface |
||
7 | { |
||
8 | /** |
||
9 | * @var string[] |
||
10 | */ |
||
11 | protected array $tableNames; |
||
12 | |||
13 | /** |
||
14 | * @param string[] $tableNames |
||
15 | */ |
||
16 | 4 | public function __construct(array $tableNames) |
|
17 | { |
||
18 | 4 | $this->tableNames = $tableNames; |
|
19 | } |
||
20 | |||
21 | /** |
||
22 | * Return the LookupDataSource so that it can be used in a druid query. |
||
23 | * |
||
24 | * @return array<string,string|string[]> |
||
25 | */ |
||
26 | 2 | public function toArray(): array |
|
31 | ]; |
||
32 | } |
||
33 | } |