| Total Complexity | 6 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | final class InnerFieldsNameConverter implements NameConverterInterface |
||
| 20 | { |
||
| 21 | private $decorated; |
||
| 22 | |||
| 23 | public function __construct(?NameConverterInterface $decorated = null) |
||
| 24 | { |
||
| 25 | $this->decorated = $decorated ?? new CamelCaseToSnakeCaseNameConverter(); |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * {@inheritdoc} |
||
| 30 | */ |
||
| 31 | public function normalize($propertyName) |
||
| 32 | { |
||
| 33 | return $this->convertInnerFields($propertyName, true); |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * {@inheritdoc} |
||
| 38 | */ |
||
| 39 | public function denormalize($propertyName) |
||
| 42 | } |
||
| 43 | |||
| 44 | private function convertInnerFields(string $propertyName, bool $normalization) |
||
| 55 |