| Conditions | 3 |
| Paths | 5 |
| Total Lines | 10 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | protected function setAttributeValue($object, $attribute, $value, $format = null, array $context = []) |
||
| 28 | { |
||
| 29 | try { |
||
| 30 | $this->propertyAccessor->setValue($object, $attribute, $value); |
||
| 31 | } catch (Exception $exception) { |
||
| 32 | try { |
||
| 33 | $refl = new ReflectionProperty($object, $attribute); |
||
| 34 | $refl->setAccessible(true); |
||
| 35 | $refl->setValue($object, $value); |
||
| 36 | } catch (ReflectionException $reflException) { |
||
| 37 | // ignored |
||
| 42 |