You are here

interface NameConverterInterface in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/serializer/NameConverter/NameConverterInterface.php \Symfony\Component\Serializer\NameConverter\NameConverterInterface

Defines the interface for property name converters.

@author Kévin Dunglas <dunglas@gmail.com>

Hierarchy

Expanded class hierarchy of NameConverterInterface

All classes that implement NameConverterInterface

2 files declare their use of NameConverterInterface
AbstractNormalizer.php in vendor/symfony/serializer/Normalizer/AbstractNormalizer.php
ObjectNormalizer.php in vendor/symfony/serializer/Normalizer/ObjectNormalizer.php

File

vendor/symfony/serializer/NameConverter/NameConverterInterface.php, line 19

Namespace

Symfony\Component\Serializer\NameConverter
View source
interface NameConverterInterface {

  /**
   * Converts a property name to its normalized value.
   *
   * @param string $propertyName
   *
   * @return string
   */
  public function normalize($propertyName);

  /**
   * Converts a property name to its denormalized value.
   *
   * @param string $propertyName
   *
   * @return string
   */
  public function denormalize($propertyName);

}

Members

Namesort descending Modifiers Type Description Overrides
NameConverterInterface::denormalize public function Converts a property name to its denormalized value. 1
NameConverterInterface::normalize public function Converts a property name to its normalized value. 1