| Conditions | 4 |
| Paths | 5 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 20 |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | private static function configureContext(Context $jmsContext, array $context = null) |
||
| 35 | { |
||
| 36 | $jmsContext->setSerializeNull(true); |
||
| 37 | |||
| 38 | if (null === $context) { |
||
| 39 | return; |
||
| 40 | } |
||
| 41 | |||
| 42 | if (array_key_exists('groups', $context)) { |
||
| 43 | $jmsContext->setGroups($context['groups']); |
||
| 44 | } |
||
| 45 | |||
| 46 | if (array_key_exists('object_to_populate', $context)) { |
||
| 47 | $jmsContext->setAttribute('target', $context['object_to_populate']); |
||
| 48 | } |
||
| 49 | } |
||
| 50 | } |
||
| 51 |