1 | <?php |
||
16 | class PivotedRootNode extends OutputNode |
||
17 | { |
||
18 | use DuplicateTrait; |
||
19 | |||
20 | /** |
||
21 | * @invisible |
||
22 | * @var int |
||
23 | */ |
||
24 | private $countPivot = 0; |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | protected $innerPivotKey; |
||
30 | |||
31 | /** |
||
32 | * @var string |
||
33 | */ |
||
34 | protected $outerPivotKey; |
||
35 | |||
36 | /** |
||
37 | * @param array $columns |
||
38 | * @param array $pivotColumns |
||
39 | * @param string $outerKey |
||
40 | * @param string $innerPivotKey |
||
41 | * @param string $outerPivotKey |
||
42 | */ |
||
43 | public function __construct( |
||
57 | |||
58 | /** |
||
59 | * {@inheritdoc} |
||
60 | */ |
||
61 | protected function pushData(array &$data) |
||
70 | |||
71 | /** |
||
72 | * {@inheritdoc} |
||
73 | * |
||
74 | * Method fetches pivot data into sub-array with key "@pivot". |
||
75 | */ |
||
76 | protected function fetchData(int $dataOffset, array $line): array |
||
86 | |||
87 | /** |
||
88 | * De-duplication in pivot tables based on values in pivot table. |
||
89 | * |
||
90 | * @param array $data |
||
91 | * |
||
92 | * @return string |
||
93 | */ |
||
94 | protected function duplicateCriteria(array &$data) |
||
101 | |||
102 | } |