| Conditions | 3 |
| Paths | 3 |
| Total Lines | 17 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | protected function addRequiredFilter($key, $id, $odata) |
||
| 29 | { |
||
| 30 | $filter = new \Data\Filter("$key eq '$id'"); |
||
| 31 | if($odata->filter !== false) |
||
| 32 | { |
||
| 33 | $clause = $odata->filter->getClause($key); |
||
| 34 | if($clause !== null) |
||
| 35 | { |
||
| 36 | return false; |
||
| 37 | } |
||
| 38 | else |
||
| 39 | { |
||
| 40 | $filter->appendChild('and'); |
||
| 41 | $filter->appendChild($odata->filter); |
||
| 42 | } |
||
| 43 | } |
||
| 44 | return $filter; |
||
| 45 | } |
||
| 48 |