1 | <?php |
||
16 | class PivotedNode extends AbstractNode implements ArrayInterface |
||
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) |
||
80 | |||
81 | /** |
||
82 | * {@inheritdoc} |
||
83 | * |
||
84 | * Method fetches pivot data into sub-array with key "@pivot". |
||
85 | */ |
||
86 | protected function fetchData(int $dataOffset, array $line): array |
||
96 | |||
97 | /** |
||
98 | * De-duplication in pivot tables based on values in pivot table. |
||
99 | * |
||
100 | * @param array $data |
||
101 | * |
||
102 | * @return string |
||
103 | */ |
||
104 | protected function duplicateCriteria(array &$data) |
||
111 | } |