| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| 1 | <?php |
||
| 52 | 14 | private function buildCompositeCondition() |
|
| 53 | { |
||
| 54 | 14 | $conditions = $this->getNotEmptyConditions(); |
|
| 55 | |||
| 56 | 14 | $compositeCondition = array_shift($conditions); |
|
| 57 | |||
| 58 | 14 | foreach($conditions as $condition) |
|
| 59 | { |
||
| 60 | 12 | $compositeCondition = $this->joinConditions($compositeCondition, $condition); |
|
| 61 | 14 | } |
|
| 62 | |||
| 63 | 14 | return $compositeCondition; |
|
| 64 | } |
||
| 65 | |||
| 75 |