Total Complexity | 3 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | class JsonSelector |
||
6 | { |
||
7 | /** |
||
8 | * The table column |
||
9 | * |
||
10 | * @var string |
||
11 | */ |
||
12 | protected $column; |
||
13 | |||
14 | /** |
||
15 | * JSON Nodes |
||
16 | * |
||
17 | * @var string[] |
||
18 | */ |
||
19 | protected $nodes; |
||
20 | |||
21 | /** |
||
22 | * @param string $column |
||
23 | * @param string[] $nodes |
||
24 | */ |
||
25 | public function __construct(string $column, array $nodes) |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * Get the table column |
||
33 | * |
||
34 | * @return string |
||
35 | */ |
||
36 | public function getColumn(): string |
||
37 | { |
||
38 | return $this->column; |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * Get jSON Nodes |
||
43 | * |
||
44 | * @return string[] |
||
45 | */ |
||
46 | public function getNodes(): array |
||
49 | } |
||
50 | } |
||
51 |