| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | private static function configureContext(Context $jmsContext, array $context = null) |
||
| 27 | { |
||
| 28 | $jmsContext->setSerializeNull(true); |
||
| 29 | |||
| 30 | if (null === $context) { |
||
| 31 | return $jmsContext; |
||
| 32 | } |
||
| 33 | |||
| 34 | if (array_key_exists('groups', $context)) { |
||
| 35 | $jmsContext->setGroups($context['groups']); |
||
| 36 | } |
||
| 37 | |||
| 38 | return $jmsContext; |
||
| 39 | } |
||
| 40 | } |
||
| 41 |