*/ public function getAllMetadata(): array; /** * Gets the class metadata descriptor for a class. * * @param class-string $className The name of the class. * * @phpstan-return T */ public function getMetadataFor(string $className): ClassMetadata; /** * Checks whether the factory has the metadata for a class loaded already. * * @param class-string $className * * @return bool TRUE if the metadata of the class in question is already loaded, FALSE otherwise. */ public function hasMetadataFor(string $className): bool; /** * Sets the metadata descriptor for a specific class. * * @param class-string $className * @phpstan-param T $class */ public function setMetadataFor(string $className, ClassMetadata $class): void; /** * Returns whether the class with the specified name should have its metadata loaded. * This is only the case if it is either mapped directly or as a MappedSuperclass. * * @phpstan-param class-string $className */ public function isTransient(string $className): bool; }