interface ClassMetadataFactoryInterface
Returns a { @author Kévin Dunglas <dunglas@gmail.com>
Hierarchy
- interface \Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactoryInterface
Expanded class hierarchy of ClassMetadataFactoryInterface
All classes that implement ClassMetadataFactoryInterface
See also
ClassMetadataInterface}.
8 files declare their use of ClassMetadataFactoryInterface
- AbstractNormalizer.php in vendor/
symfony/ serializer/ Normalizer/ AbstractNormalizer.php - AbstractObjectNormalizer.php in vendor/
symfony/ serializer/ Normalizer/ AbstractObjectNormalizer.php - ClassDiscriminatorFromClassMetadata.php in vendor/
symfony/ serializer/ Mapping/ ClassDiscriminatorFromClassMetadata.php - CompiledClassMetadataCacheWarmer.php in vendor/
symfony/ serializer/ CacheWarmer/ CompiledClassMetadataCacheWarmer.php - DebugCommand.php in vendor/
symfony/ serializer/ Command/ DebugCommand.php
File
-
vendor/
symfony/ serializer/ Mapping/ Factory/ ClassMetadataFactoryInterface.php, line 22
Namespace
Symfony\Component\Serializer\Mapping\FactoryView source
interface ClassMetadataFactoryInterface {
/**
* If the method was called with the same class name (or an object of that
* class) before, the same metadata instance is returned.
*
* If the factory was configured with a cache, this method will first look
* for an existing metadata instance in the cache. If an existing instance
* is found, it will be returned without further ado.
*
* Otherwise, a new metadata instance is created. If the factory was
* configured with a loader, the metadata is passed to the
* {@link \Symfony\Component\Serializer\Mapping\Loader\LoaderInterface::loadClassMetadata()} method for further
* configuration. At last, the new object is returned.
*
* @throws InvalidArgumentException
*/
public function getMetadataFor(string|object $value) : ClassMetadataInterface;
/**
* Checks if class has metadata.
*/
public function hasMetadataFor(mixed $value) : bool;
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|
ClassMetadataFactoryInterface::getMetadataFor | public | function | If the method was called with the same class name (or an object of that class) before, the same metadata instance is returned. |
3 |
ClassMetadataFactoryInterface::hasMetadataFor | public | function | Checks if class has metadata. | 3 |