From bf6655a534a6775d30cafa67bd801276bda1d98d Mon Sep 17 00:00:00 2001 From: polo Date: Tue, 13 Aug 2024 23:45:21 +0200 Subject: =?UTF-8?q?VERSION=200.2=20doctrine=20ORM=20et=20entit=C3=A9s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Persistence/Mapping/ClassMetadataFactory.php | 61 ++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 vendor/doctrine/persistence/src/Persistence/Mapping/ClassMetadataFactory.php (limited to 'vendor/doctrine/persistence/src/Persistence/Mapping/ClassMetadataFactory.php') diff --git a/vendor/doctrine/persistence/src/Persistence/Mapping/ClassMetadataFactory.php b/vendor/doctrine/persistence/src/Persistence/Mapping/ClassMetadataFactory.php new file mode 100644 index 0000000..28b8303 --- /dev/null +++ b/vendor/doctrine/persistence/src/Persistence/Mapping/ClassMetadataFactory.php @@ -0,0 +1,61 @@ + + */ + public function getAllMetadata(); + + /** + * Gets the class metadata descriptor for a class. + * + * @param class-string $className The name of the class. + * + * @return ClassMetadata + * @psalm-return T + */ + public function getMetadataFor(string $className); + + /** + * 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); + + /** + * Sets the metadata descriptor for a specific class. + * + * @param class-string $className + * @psalm-param T $class + * + * @return void + */ + public function setMetadataFor(string $className, ClassMetadata $class); + + /** + * 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. + * + * @psalm-param class-string $className + * + * @return bool + */ + public function isTransient(string $className); +} -- cgit v1.2.3