Copied!

Returns a {@link ClassMetadata}.

CloneableInstantiable
Methods
public __construct(Symfony\Component\Serializer\Mapping\Loader\LoaderInterface $loader)
public getMetadataFor(object|string $value) : Symfony\Component\Serializer\Mapping\ClassMetadataInterface
public hasMetadataFor(?mixed $value) : bool
Properties
private array $loadedClasses
 
  • var array<string,\ClassMetadataInterface>
privatereadonly Symfony\Component\Serializer\Mapping\Loader\LoaderInterface $loader
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