Debian Codegraph @

lib/3rdParty/composer/symfony/serializer/NameConverter/NameConverterInterface.php

raw symbols SCIP
1 <?php
2
3 /*
4 * This file is part of the Symfony package.
5 *
6 * (c) Fabien Potencier <[email protected]>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12 namespace Symfony\Component\Serializer\NameConverter;
13
14 /**
15 * Defines the interface for property name converters.
16 *
17 * @author Kévin Dunglas <[email protected]>
18 */
19 interface NameConverterInterface
20 {
21 /**
22 * Converts a property name to its normalized value.
23 *
24 * @param class-string|null $class
25 * @param string|null $format
26 * @param array<string, mixed> $context
27 */
28 public function normalize(string $propertyName/* , ?string $class = null, ?string $format = null, array $context = [] */): string;
29
30 /**
31 * Converts a property name to its denormalized value.
32 *
33 * @param class-string|null $class
34 * @param string|null $format
35 * @param array<string, mixed> $context
36 */
37 public function denormalize(string $propertyName/* , ?string $class = null, ?string $format = null, array $context = [] */): string;
38 }