Copied!

Caches metadata using a PSR-6 implementation.

CloneableInstantiable
Methods
public __construct(Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactoryInterface $decorated, Psr\Cache\CacheItemPoolInterface $cacheItemPool)
public getMetadataFor(object|string $value) : Symfony\Component\Serializer\Mapping\ClassMetadataInterface
public hasMetadataFor(?mixed $value) : bool
Properties
private readonly Psr\Cache\CacheItemPoolInterface $cacheItemPool
private readonly Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactoryInterface $decorated
private array $loadedClasses = []
 
  • var array<string,\ClassMetadataInterface>
Methods
private getClass(object|string $value) : string
 

Gets a class name for a given class or instance.

  • throws \InvalidArgumentException If the class does not exist
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration