| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 46 | 6 | public function addJoin(EntityFetcher $fetcher, $join, $alias) |
|
| 47 | { |
||
| 48 | 6 | $expression = []; |
|
| 49 | 6 | foreach ($this->getOpponent()->getReference() as $hisVar => $myVar) { |
|
| 50 | 6 | $expression[] = $alias . '.' . $myVar . ' = ' . $this->name . '.' . $hisVar; |
|
| 51 | } |
||
| 52 | |||
| 53 | 6 | call_user_func([$fetcher, $join], $this->class, implode(' AND ', $expression), $this->name, [], true); |
|
| 54 | 6 | } |
|
| 55 | } |
||
| 56 |