Conditions | 3 |
Paths | 4 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
56 | private function configureContext(Context $context) |
||
57 | { |
||
58 | foreach ($this->config['attributes'] as $key => $value) { |
||
59 | $context->setAttribute($key, $value); |
||
60 | } |
||
61 | |||
62 | $context->setGroups($this->config['groups']); |
||
63 | $context->setSerializeNull($this->config['serialize_null']); |
||
64 | if ($this->config['version'] !== null) { |
||
65 | $context->setVersion($this->config['version']); |
||
66 | } |
||
67 | |||
68 | return $context; |
||
69 | } |
||
70 | } |
||
71 |