| Conditions | 3 | 
| Paths | 2 | 
| Total Lines | 14 | 
| Code Lines | 4 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 1 | 
| CRAP Score | 3 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 34 | public function denormalizeField( | ||
| 35 | string $path, | ||
| 36 | $object, | ||
| 37 | $value, | ||
| 38 | DenormalizerContextInterface $context, | ||
| 39 | DenormalizerInterface $denormalizer = null | ||
| 40 |     ): void { | ||
| 41 | 3 |         if ('' === $value && $this->emptyToNull) { | |
| 42 | $this->accessor->setValue($object, null); | ||
| 43 | |||
| 44 | return; | ||
| 45 | } | ||
| 46 | |||
| 47 | $this->accessor->setValue($object, $value); | ||
| 48 | 3 | } | |
| 50 |