Debian Codegraph @

lib/3rdParty/composer/symfony/serializer/Mapping/ClassDiscriminatorResolverInterface.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\Mapping;
13
14 /**
15 * Knows how to get the class discriminator mapping for classes and objects.
16 *
17 * @author Samuel Roze <[email protected]>
18 */
19 interface ClassDiscriminatorResolverInterface
20 {
21 public function getMappingForClass(string $class): ?ClassDiscriminatorMapping;
22
23 public function getMappingForMappedObject(object|string $object): ?ClassDiscriminatorMapping;
24
25 public function getTypeForMappedObject(object|string $object): ?string;
26 }