| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function filterItems(MutableContainerInterface $container): MutableContainerInterface |
||
| 26 | { |
||
| 27 | $filtered = clone $container; |
||
| 28 | $filtered->reset(); |
||
| 29 | |||
| 30 | array_map( |
||
| 31 | [$filtered, 'add'], |
||
| 32 | array_filter( |
||
| 33 | $container->getItems(), |
||
| 34 | [$this, 'filter'] |
||
| 35 | ) |
||
| 36 | ); |
||
| 37 | |||
| 38 | return $filtered; |
||
| 39 | } |
||
| 40 | |||
| 52 |