@@ 159-184 (lines=26) @@ | ||
156 | * @param $dependentProperty |
|
157 | * @return array[] |
|
158 | */ |
|
159 | private function calculateRoundTripRelationsGenForwardReverse( |
|
160 | $principalType, |
|
161 | $principalMult, |
|
162 | $principalProperty, |
|
163 | $dependentType, |
|
164 | $dependentMult, |
|
165 | $dependentProperty |
|
166 | ) { |
|
167 | $forward = [ |
|
168 | 'principalType' => $principalType, |
|
169 | 'principalMult' => $dependentMult, |
|
170 | 'principalProp' => $principalProperty, |
|
171 | 'dependentType' => $dependentType, |
|
172 | 'dependentMult' => $principalMult, |
|
173 | 'dependentProp' => $dependentProperty |
|
174 | ]; |
|
175 | $reverse = [ |
|
176 | 'principalType' => $dependentType, |
|
177 | 'principalMult' => $principalMult, |
|
178 | 'principalProp' => $dependentProperty, |
|
179 | 'dependentType' => $principalType, |
|
180 | 'dependentMult' => $dependentMult, |
|
181 | 'dependentProp' => $principalProperty |
|
182 | ]; |
|
183 | return [$forward, $reverse]; |
|
184 | } |
|
185 | } |
|
186 |
@@ 423-448 (lines=26) @@ | ||
420 | * @param $dependentProperty |
|
421 | * @return array[] |
|
422 | */ |
|
423 | private function calculateRoundTripRelationsGenForwardReverse( |
|
424 | $principalType, |
|
425 | $principalMult, |
|
426 | $principalProperty, |
|
427 | $dependentType, |
|
428 | $dependentMult, |
|
429 | $dependentProperty |
|
430 | ) { |
|
431 | $forward = [ |
|
432 | 'principalType' => $principalType, |
|
433 | 'principalMult' => $dependentMult, |
|
434 | 'principalProp' => $principalProperty, |
|
435 | 'dependentType' => $dependentType, |
|
436 | 'dependentMult' => $principalMult, |
|
437 | 'dependentProp' => $dependentProperty |
|
438 | ]; |
|
439 | $reverse = [ |
|
440 | 'principalType' => $dependentType, |
|
441 | 'principalMult' => $principalMult, |
|
442 | 'principalProp' => $dependentProperty, |
|
443 | 'dependentType' => $principalType, |
|
444 | 'dependentMult' => $dependentMult, |
|
445 | 'dependentProp' => $principalProperty |
|
446 | ]; |
|
447 | return [$forward, $reverse]; |
|
448 | } |
|
449 | ||
450 | private function processRelationLine($line, $entityTypes, &$meta) |
|
451 | { |