| Conditions | 4 |
| Paths | 4 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | public function getAdded($fields = array()) |
||
| 38 | { |
||
| 39 | $res = array(); |
||
| 40 | |||
| 41 | foreach ($this->added as $added) { |
||
| 42 | $filtered = array(); |
||
| 43 | foreach ($fields as $field) { |
||
| 44 | if (isset($added[$field])) { |
||
| 45 | $filtered[$field] = $added[$field]; |
||
| 46 | } |
||
| 47 | } |
||
| 48 | $res[] = $filtered; |
||
| 49 | } |
||
| 50 | |||
| 51 | return $res; |
||
| 52 | } |
||
| 80 |